/* Visual inspirado no Liquid Glass: vidro translúcido sobre fundo colorido */
:root {
  --bg: #EEF2F5;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --accent: #0071E3;
  --accent-hover: #0062C4;
  --glass: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 10px 40px rgba(20, 40, 60, 0.10);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.25);
  --blob-1: #7FD3B8;
  --blob-2: #8FB8FF;
  --blob-3: #FFD59A;
  --blob-4: #C7B5FF;
  --radius-l: 28px;
  --radius-m: 20px;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D10;
    --ink: #F5F5F7;
    --muted: #A1A1A6;
    --accent: #2997FF;
    --accent-hover: #5AB0FF;
    --glass: rgba(40, 44, 52, 0.45);
    --glass-strong: rgba(48, 52, 60, 0.62);
    --glass-edge: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    --blob-1: #1F6B57;
    --blob-2: #1E4E9C;
    --blob-3: #7A5320;
    --blob-4: #4B3A8F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

/* Fundo colorido que dá vida ao vidro */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(40vmax 40vmax at 15% 20%, var(--blob-1), transparent 60%),
    radial-gradient(38vmax 38vmax at 85% 15%, var(--blob-2), transparent 60%),
    radial-gradient(34vmax 34vmax at 75% 80%, var(--blob-3), transparent 60%),
    radial-gradient(36vmax 36vmax at 20% 85%, var(--blob-4), transparent 60%);
  filter: blur(20px) saturate(120%);
  opacity: 0.85;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }

/* Superfície de vidro reutilizada */
.topbar .wrap,
.block .wrap,
.doc .wrap,
footer .wrap {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--highlight), var(--glass-shadow);
}

/* Barra de navegação flutuante em cápsula */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  padding: 12px 1rem 0;
}
.topbar .wrap {
  max-width: 62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.8rem 0.7rem 1.4rem;
  border-radius: 999px;
}
.brand { font-weight: 600; font-size: 1rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.topnav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.topnav a {
  color: var(--ink);
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  opacity: 0.8;
}
.topnav a:hover, .topnav a[aria-current="page"] {
  text-decoration: none;
  opacity: 1;
  background: var(--glass-strong);
  box-shadow: var(--highlight);
}

/* Hero centralizado */
.hero { padding: 5rem 0 3.5rem; }
.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .wrap > div:first-child { max-width: 46rem; }
.hero p.lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--muted);
  max-width: 36rem;
  margin: 1rem auto 0;
  line-height: 1.45;
}
.frame {
  order: -1;
  width: 112px;
  height: 112px;
  margin-bottom: 2rem;
  padding: 18px;
  border-radius: 28px;
  color: var(--ink);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--highlight), var(--glass-shadow);
}
.frame svg { width: 100%; height: 100%; display: block; stroke-width: 9; }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  color: var(--accent);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--highlight);
}

/* Seções como painéis de vidro */
section.block { padding: 0.75rem 0; }
.block .wrap {
  border-radius: var(--radius-l);
  padding: 2.5rem;
  max-width: calc(62rem - 2.5rem);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2.5rem;
}
.split > div > p { max-width: var(--measure); }
.split > div:first-child p { color: var(--muted); }

.services { display: grid; gap: 0.9rem; }
.service {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-m);
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--highlight);
}
.service h3 { margin-bottom: 0.35rem; }
.service p { color: var(--muted); margin: 0; }

.partner {
  padding: 1.75rem;
  border-radius: var(--radius-m);
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--highlight);
}
.partner .role { color: var(--muted); margin-bottom: 0.25rem; font-size: 0.95rem; }
.partner h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.partner .creci {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 1rem;
}

dl.contact { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 1.5rem; }
dl.contact dt { color: var(--muted); }
dl.contact dd { margin: 0; overflow-wrap: anywhere; }

/* Páginas de texto legal */
.doc { padding: 2.5rem 0 1rem; }
.doc .wrap {
  max-width: 46rem;
  border-radius: var(--radius-l);
  padding: 3rem 2.75rem;
}
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2.5rem; letter-spacing: -0.015em; }
.doc .updated { color: var(--muted); margin-bottom: 2rem; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.4rem; }
.note {
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--highlight);
  border-radius: var(--radius-m);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* Rodapé */
footer { padding: 0.75rem 0 2.5rem; color: var(--muted); font-size: 0.85rem; }
footer .wrap {
  display: grid;
  gap: 0.6rem;
  border-radius: var(--radius-l);
  padding: 1.75rem 2.5rem;
  max-width: calc(62rem - 2.5rem);
}
footer .legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.4rem; }
footer p { margin: 0; }

/* Navegadores sem suporte a desfoque: vidro mais opaco */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, 0.88); --glass-strong: rgba(255, 255, 255, 0.95); }
  @media (prefers-color-scheme: dark) {
    :root { --glass: rgba(30, 33, 38, 0.92); --glass-strong: rgba(40, 44, 50, 0.96); }
  }
}

@media (max-width: 760px) {
  .topbar { top: 8px; padding: 8px 0.6rem 0; }
  .topbar .wrap { border-radius: 24px; padding: 0.8rem 1rem; }
  .topnav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { padding: 0.4rem 0.7rem; font-size: 0.85rem; white-space: nowrap; }
  .hero { padding: 3rem 0 2rem; }
  .block .wrap, footer .wrap { max-width: calc(100% - 1.2rem); padding: 1.6rem 1.3rem; border-radius: 24px; }
  .split { grid-template-columns: 1fr; gap: 1.25rem; }
  .doc { padding: 1.5rem 0 0.5rem; }
  .doc .wrap { max-width: calc(100% - 1.2rem); padding: 2rem 1.3rem; border-radius: 24px; }
  dl.contact { grid-template-columns: 1fr; gap: 0.1rem; }
  dl.contact dd { margin-bottom: 0.75rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .frame path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s ease-out forwards; }
  .frame path:nth-child(n+5) { animation-delay: 0.4s; }
  .frame path:nth-child(n+9) { animation-delay: 0.8s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ===== Conecta Lead: componentes da plataforma ===== */
.hero .wrap { gap: 0; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--highlight);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  margin-bottom: 1.25rem;
}
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #30D158; }

.mock {
  width: 100%; max-width: 40rem; margin-top: 3rem; text-align: left;
  border-radius: var(--radius-l); padding: 1.5rem;
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--highlight), var(--glass-shadow);
}
.mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mock-head strong { font-size: 1.05rem; }
.mock-head span { color: var(--muted); font-size: 0.85rem; }
.mock-bubble {
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--highlight);
  border-radius: 18px 18px 18px 6px; padding: 0.9rem 1.1rem; margin-bottom: 1.1rem; font-size: 0.95rem;
}
.mock-bubble .btnrow { margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--glass-edge); color: var(--accent); font-weight: 600; text-align: center; }
.mock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.stat { background: var(--glass-strong); border: 1px solid var(--glass-edge); border-radius: 16px; padding: 0.8rem; box-shadow: var(--highlight); }
.stat b { display: block; font-size: 1.35rem; letter-spacing: -0.02em; }
.stat small { color: var(--muted); font-size: 0.8rem; }
.bar { height: 6px; border-radius: 999px; background: var(--glass-edge); margin-top: 0.5rem; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.mock-note { color: var(--muted); font-size: 0.78rem; margin: 0.9rem 0 0; text-align: center; }

.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.feature {
  padding: 1.5rem; border-radius: var(--radius-m);
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--highlight);
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #fff; margin-bottom: 1rem;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin-bottom: 0.75rem; }
.feature ul { margin: 0; padding-left: 1.1rem; color: var(--ink); font-size: 0.95rem; }
.feature li { margin-bottom: 0.3rem; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; counter-reset: s; }
.step { padding: 1.4rem; border-radius: var(--radius-m); background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--highlight); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 0.9rem;
}
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; width: 20px; height: 20px; border-radius: 50%;
  background: #30D158 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checks li span { color: var(--muted); display: block; font-size: 0.95rem; }

.faq details {
  border-radius: var(--radius-m); padding: 1.1rem 1.3rem; margin-bottom: 0.7rem;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--highlight);
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0.8rem 0 0; }

.block .wrap.single { display: block; }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .features, .steps { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock { margin-top: 2rem; padding: 1.1rem; }
}
