/* ChatOne — site institucional. Identidade azul (ver DESIGN-SYSTEM.md). */

:root {
  --primary: #2f6bf0;
  --primary-hover: #2456c8;
  --primary-soft: #e7effe;
  --accent2: #5a45d6;
  --navy: #1e2a52;
  --ink: #1b2440;
  --muted: #5c6a86;
  --faint: #8a96ad;
  --line: #dbe1ec;
  --line-soft: #e8ecf4;
  --surface: #ffffff;
  --bg: #f4f6fb;
  --radius: 12px;
  --wrap: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- topo ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 246, 251, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
  color: var(--navy);
}
.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
}
.nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero img.logo {
  width: 108px;
  height: 108px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy);
  font-weight: 700;
}

.lead {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
}

/* ---------- conteúdo ---------- */

section {
  padding: 56px 0;
}

h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 12px;
  font-weight: 700;
}

h3 {
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 600;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

/* ---------- faq ---------- */

.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  cursor: pointer;
  padding: 20px 26px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq summary:hover {
  color: var(--primary);
}

.faq .answer {
  padding: 0 26px 22px;
  color: var(--muted);
}
.faq .answer p:first-child {
  margin-top: 0;
}
.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- contato ---------- */

.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.contact .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.contact .value {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}

/* ---------- documento legal ---------- */

.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 34px 34px;
}

.doc h2 {
  font-size: 21px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.doc h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc ul {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 8px;
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.updated {
  color: var(--faint);
  font-size: 15px;
}

/* ---------- rodapé ---------- */

footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 56px;
  padding: 36px 0 56px;
  color: var(--faint);
  font-size: 15px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
}

footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer a {
  color: var(--muted);
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .nav {
    gap: 16px;
    font-size: 14px;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .doc {
    padding: 8px 22px 26px;
  }
  .card,
  .contact {
    padding: 22px;
  }
}
