/* ============ NexB — nexbapp.com ============ */
:root {
  --navy: #001232;
  --navy-2: #04193f;
  --card: #0a2149;
  --card-2: #0d2854;
  --line: rgba(24, 196, 244, 0.14);
  --blue: #0644e3;
  --cyan: #18c4f4;
  --grad: linear-gradient(100deg, var(--blue), var(--cyan));
  --text: #eef3fb;
  --muted: #93a8cf;
  --wa: #25d366;
  --radius: 16px;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.22; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 18, 50, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; display: block; }
.brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: #fff; letter-spacing: 0.01em;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px;
  background: var(--grad); color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(24, 196, 244, 0.28); text-decoration: none; }
.btn-ghost {
  background: transparent; border: 1px solid rgba(24, 196, 244, 0.45); color: var(--cyan);
}
.btn-ghost:hover { box-shadow: none; background: rgba(24, 196, 244, 0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 72px;
  background:
    radial-gradient(720px 420px at 78% -10%, rgba(6, 68, 227, 0.28), transparent 65%),
    radial-gradient(560px 380px at 8% 110%, rgba(24, 196, 244, 0.10), transparent 60%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); background: rgba(24, 196, 244, 0.10);
  border: 1px solid rgba(24, 196, 244, 0.30);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
.hero h1 .hl {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin-top: 18px; color: var(--muted); font-size: 1.12rem; max-width: 34em; }
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .micro { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Chat mockup (assinatura) ---------- */
.chat {
  background: linear-gradient(160deg, var(--card), var(--navy-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 20px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); padding: 7px; }
.chat-head strong { font-family: var(--font-display); font-size: 0.98rem; display: block; }
.chat-head em { font-style: normal; font-size: 0.78rem; color: #4ade80; }
.chat-body { padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg {
  max-width: 82%; padding: 11px 15px; border-radius: 16px;
  font-size: 0.92rem; line-height: 1.5;
  opacity: 0; transform: translateY(10px);
  animation: msg-in 0.5s ease forwards;
}
.msg.in  { align-self: flex-start; background: #f2f5fa; color: #14233f; border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--card-2); color: var(--text); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.msg:nth-child(1) { animation-delay: 0.3s; }
.msg:nth-child(2) { animation-delay: 1.1s; }
.msg:nth-child(3) { animation-delay: 1.9s; }
.msg:nth-child(4) { animation-delay: 2.7s; }
@keyframes msg-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .msg { animation: none; opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; margin-bottom: 14px; }
.section .lead { color: var(--muted); max-width: 42em; margin-bottom: 40px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.feature-list { list-style: none; }
.col-title {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.feature-list li {
  position: relative; padding: 9px 0 9px 30px; color: var(--text); font-size: 0.98rem;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--grad);
}

.notice {
  margin-top: 44px; padding: 18px 22px; border-radius: var(--radius);
  background: rgba(24, 196, 244, 0.06); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.92rem;
}
.notice strong { color: var(--text); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.step .n {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  color: var(--cyan); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Waitlist ---------- */
.waitlist-card {
  background: linear-gradient(150deg, var(--card), var(--navy-2));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.waitlist-card h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.waitlist-card .lead { margin-bottom: 0; margin-top: 12px; }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-grid label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-grid input, .form-grid select {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--navy); border: 1px solid rgba(147, 168, 207, 0.28);
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
.form-grid input::placeholder { color: #5f739c; }
.form-grid input:focus, .form-grid select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(24, 196, 244, 0.15);
}
.form-grid .btn { margin-top: 6px; width: 100%; }
.form-grid .fine { font-size: 0.78rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 90px; }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.site-footer .brand span { font-size: 1.05rem; }
.site-footer .tagline { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--cyan); }
.site-footer .legal { color: #5f739c; font-size: 0.78rem; margin-top: 22px; width: 100%; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.07); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Páginas legais ---------- */
.doc { padding: 64px 0 90px; max-width: 780px; }
.doc h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.22rem; margin: 42px 0 12px; }
.doc h3 { font-size: 1.02rem; margin: 26px 0 10px; }
.doc p, .doc li { color: #c6d3ea; font-size: 0.97rem; }
.doc ul, .doc ol { padding-left: 24px; margin: 10px 0 16px; }
.doc li { margin-bottom: 7px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.9rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); color: #c6d3ea; vertical-align: top; }
.doc th { background: var(--card); color: var(--text); font-family: var(--font-display); font-weight: 600; }
.doc blockquote {
  margin: 18px 0; padding: 16px 20px; border-left: 3px solid var(--cyan);
  background: rgba(24, 196, 244, 0.06); border-radius: 0 12px 12px 0;
  color: #c6d3ea; font-size: 0.95rem;
}
.doc code { background: var(--card); padding: 2px 7px; border-radius: 6px; font-size: 0.86em; color: var(--cyan); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero .wrap, .waitlist-card { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 52px; }
  .waitlist-card { padding: 32px 24px; }
}

/* ---------- Dores (numeradas) ---------- */
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pain {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.pain-n {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.2; flex-shrink: 0;
}
.pain p { color: var(--muted); font-size: 0.95rem; }
.pain strong { color: var(--text); }

/* ---------- Deep dives ---------- */
.dive {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 38px 0;
}
.dive + .dive { border-top: 1px solid var(--line); }
.dive-rev .dive-text { order: 2; }
.dive-rev .chat-mini { order: 1; }
.dive-text h3 { font-size: 1.35rem; margin: 10px 0 12px; }
.dive-text p { color: var(--muted); font-size: 0.98rem; max-width: 32em; }
.chat-mini { padding: 18px; max-width: 420px; justify-self: center; width: 100%; }
.chat-mini .msg { animation: none; opacity: 1; transform: none; font-size: 0.88rem; }

/* ---------- Calculadora ---------- */
.calc-card {
  background: linear-gradient(150deg, var(--card), var(--navy-2));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 48px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.calc-card h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-top: 14px; }
.calc-card .lead { margin-bottom: 0; margin-top: 12px; }
.calc-form { display: flex; flex-direction: column; gap: 14px; }
.calc-form label { font-size: 0.85rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; }
.calc-form input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--navy); border: 1px solid rgba(147, 168, 207, 0.28);
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
.calc-form input::placeholder { color: #5f739c; }
.calc-form input:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(24, 196, 244, 0.15);
}
.calc-result {
  margin-top: 4px; padding: 18px 20px; border-radius: var(--radius);
  background: rgba(24, 196, 244, 0.06); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.calc-label { font-size: 0.8rem; color: var(--muted); }
.calc-result strong {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc-form .btn { margin-top: 6px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 18px 52px 18px 22px; position: relative; color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--cyan);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .pains { grid-template-columns: 1fr; }
  .dive { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
  .dive-rev .dive-text { order: 1; }
  .dive-rev .chat-mini { order: 2; }
  .calc-card { grid-template-columns: 1fr; padding: 32px 24px; }
}
