/* ==========================================================================
   Clinivoz — site institucional (apps/site)
   CSS único, compartilhado por todas as páginas. Inter vem do Google Fonts.
   ========================================================================== */

:root {
  --ink: #0B1215;
  --ink2: #5B6770;
  --ink3: #8A949B;
  --ln: #E7EAEC;
  --bg: #FFFFFF;
  --soft: #F5F7F7;
  --ac: #0F6B62;
  --ac2: #14B8A6;
  --acs: #E6F2F0;
  --dark: #0A1012;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F2F5F6;
    --ink2: #A7B2B8;
    --ink3: #7D8890;
    --ln: #1E2A2E;
    --bg: #0A0F11;
    --soft: #11181B;
    --acs: #0F2B28;
  }
}

:root[data-theme="dark"] {
  --ink: #F2F5F6;
  --ink2: #A7B2B8;
  --ink3: #7D8890;
  --ln: #1E2A2E;
  --bg: #0A0F11;
  --soft: #11181B;
  --acs: #0F2B28;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

.w { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Navegação ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--ln);
}
.nav .w { display: flex; align-items: center; height: 60px; gap: 28px; }

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lm { height: 24px; width: 28px; flex: none; }
.wm { font-weight: 800; letter-spacing: -0.03em; font-size: 21px; color: #13302D; }
.wm em { font-style: normal; color: #0F6B62; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wm { color: #F2F5F6; }
  :root:not([data-theme="light"]) .wm em { color: #2DD4BF; }
}
:root[data-theme="dark"] .wm { color: #F2F5F6; }
:root[data-theme="dark"] .wm em { color: #2DD4BF; }

.links { display: flex; gap: 26px; font-size: 14px; color: var(--ink2); }
.links a { text-decoration: none; }
.links a:hover { color: var(--ink); }

.navr { margin-left: auto; display: flex; gap: 10px; }

.b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.15s;
}
.b.p { background: var(--ink); color: var(--bg); }
.b.p:hover { opacity: 0.85; }
.b.g { color: var(--ink); border: 1px solid var(--ln); background: var(--bg); }
.b.l { height: 50px; padding: 0 26px; font-size: 16px; }
.b.ac { background: var(--ac); color: #fff; }

/* --- Hero ------------------------------------------------------------------ */

.hero { text-align: center; padding: 96px 0 40px; position: relative; overflow: hidden; }
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ln) 1px, transparent 1px),
    linear-gradient(90deg, var(--ln) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 50% at 50% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 20%, #000, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero > .w { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ac);
  background: var(--acs);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 9px; background: #E07A5F; display: block; }

h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 auto 22px;
  font-weight: 800;
  max-width: 900px;
}
h1 span {
  background: linear-gradient(90deg, var(--ac), var(--ac2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink2);
  max-width: 640px;
  margin: 0 auto 34px;
  letter-spacing: -0.01em;
}
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.small { font-size: 13px; color: var(--ink3); margin-top: 16px; }

/* --- Mockup do produto ------------------------------------------------------ */

.stage { position: relative; max-width: 1040px; margin: 64px auto 0; padding: 0 24px; }
.glow {
  position: absolute;
  inset: 10% 8% auto;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--ac2) 28%, transparent), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.laptop {
  position: relative;
  z-index: 1;
  background: #0E1416;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 40px 90px rgba(10, 30, 30, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: perspective(2200px) rotateX(6deg);
  transform-origin: 50% 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stage:hover .laptop { transform: perspective(2200px) rotateX(0); }

.scr {
  background: #F6F8F8;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 430px;
  color: #0B1215;
  text-align: left;
}
.side { background: #0F1C1E; padding: 16px 12px; color: #9FB1B4; font-size: 12.5px; }
.side .lg { display: flex; gap: 8px; align-items: center; color: #fff; font-weight: 700; margin: 0 6px 18px; }
.side .it { padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; }
.side .it.on { background: #1C3033; color: #fff; font-weight: 600; }

.main { padding: 20px 22px; }
.mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mh b { font-size: 17px; }
.mh span { font-size: 12px; color: #5B6770; }

.cols { display: grid; grid-template-columns: 46px repeat(4, 1fr); gap: 6px; font-size: 11.5px; }
.cols .h { font-weight: 700; color: #5B6770; padding: 4px 6px; }
.cols .t { color: #8A949B; padding-top: 8px; }
.ev { border-radius: 8px; padding: 7px 8px; font-weight: 600; line-height: 1.25; }
.ev small { display: block; font-weight: 500; opacity: 0.75; margin-top: 2px; }
.e1 { background: #E2F2EE; color: #0B5C54; border-left: 3px solid #0F6B62; }
.e2 { background: #EAF0FB; color: #2B4B8C; border-left: 3px solid #4F6FD8; }
.e3 { background: #FFF3E3; color: #8A4B00; border-left: 3px solid #E29A2E; }
.e4 { background: #F3EDFB; color: #5A3A8C; border-left: 3px solid #8B5CF6; }
.em { min-height: 34px; }

.phone {
  position: absolute;
  z-index: 2;
  right: -10px;
  bottom: -34px;
  width: 230px;
  background: #0E1416;
  border-radius: 34px;
  padding: 9px;
  box-shadow: 0 30px 70px rgba(10, 30, 30, 0.35);
}
.ps { background: #ECE5DD; border-radius: 26px; overflow: hidden; min-height: 400px; text-align: left; }
.ph { background: #075E54; color: #fff; padding: 22px 14px 10px; font-size: 13px; font-weight: 600; }
.ph small { display: block; font-weight: 400; opacity: 0.8; font-size: 11px; }
.bub {
  background: #fff;
  margin: 10px;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  color: #111;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.bub .bt {
  display: block;
  text-align: center;
  color: #0A7CFF;
  border-top: 1px solid #eee;
  margin: 8px -10px -4px;
  padding-top: 7px;
  font-weight: 600;
}
.me { background: #DCF8C6; margin-left: 70px; }

/* --- Seções ---------------------------------------------------------------- */

.sec { padding: 120px 0; }
.k { font-size: 13px; font-weight: 700; color: #E07A5F; letter-spacing: 0.02em; margin-bottom: 12px; }
h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  font-weight: 800;
}
.p2 { font-size: 19px; color: var(--ink2); max-width: 620px; margin: 0; letter-spacing: -0.01em; }
.center { text-align: center; }
.center .p2 { margin: 0 auto; }

/* --- Cartões de benefícios -------------------------------------------------- */

.ben { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.bn {
  background: var(--soft);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.bn .n {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--ln);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #E07A5F;
  margin-bottom: 22px;
}
.bn h3 { font-size: 24px; letter-spacing: -0.025em; margin: 0 0 8px; line-height: 1.15; }
.bn p { margin: 0; color: var(--ink2); font-size: 15.5px; }
.bn .vis { margin-top: auto; padding-top: 24px; }

.vis { margin-top: auto; padding-top: 24px; }
.list { display: grid; gap: 8px; }
.li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.li b { margin-left: auto; font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 9px; display: inline-block; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.bars i {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(var(--ac2), var(--ac));
  display: block;
  opacity: 0.85;
}
.vid {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: linear-gradient(135deg, #123B37, #0F6B62);
  display: grid;
  place-items: center;
  color: #fff;
}
.play { width: 44px; height: 44px; border-radius: 99px; background: rgba(255, 255, 255, 0.9); position: relative; }
.play:after {
  content: "";
  position: absolute;
  left: 17px;
  top: 13px;
  border-left: 14px solid var(--ac);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* --- Seção escura (segurança) ---------------------------------------------- */

.dark { background: var(--dark); color: #F2F5F6; }
.dark .p2 { color: #9AA7AC; }
.dark .k { color: #F4A98F; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.strip div { border-top: 1px solid #1F2C30; padding-top: 18px; }
.strip b { display: block; font-size: 16px; margin-bottom: 4px; }
.strip span { color: #8C9A9F; font-size: 14px; }

/* --- Abas "Para quem" -------------------------------------------------------- */

.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--soft);
  border: 1px solid var(--ln);
  border-radius: 999px;
  padding: 5px;
  margin: 40px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--ink2);
  font: 600 14.5px Inter, system-ui, sans-serif;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.rolebox {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
  text-align: left;
}
.rolebox h3 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 12px; }
.rolebox p { color: var(--ink2); font-size: 17px; margin: 0 0 18px; }
.rolebox ul { list-style: none; padding: 0; margin: 0; }
.rolebox li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-top: 1px solid var(--ln);
  font-size: 15.5px;
}
.rolebox li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ac);
  border-bottom: 2px solid var(--ac);
  transform: rotate(-45deg);
}

.mock { background: var(--soft); border: 1px solid var(--ln); border-radius: 24px; padding: 24px; min-height: 330px; }
.mrow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 14.5px;
}
.mrow .av {
  width: 34px;
  height: 34px;
  border-radius: 99px;
  background: var(--acs);
  color: var(--ac);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.mrow .tx { flex: 1; }
.mrow .tx small { display: block; color: var(--ink3); font-size: 12.5px; }

.tag2 { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 4px 10px; }
.t-ok { background: #E7F6EC; color: #15803D; }
.t-wa { background: #FFF3E3; color: #8A4B00; }
.t-ac { background: var(--acs); color: var(--ac); }
.big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }

.panel[hidden] { display: none; }

/* --- FAQ -------------------------------------------------------------------- */

.faq { max-width: 780px; margin: 48px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--ln); padding: 22px 4px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after {
  content: "+";
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: var(--ink3);
  transition: transform 0.2s;
}
.faq details[open] summary:after { transform: rotate(45deg); }
.faq p { color: var(--ink2); margin: 12px 0 0; font-size: 16px; max-width: 680px; }

/* --- Passos / CTA final ------------------------------------------------------ */

.final { padding: 120px 0; text-align: center; background: linear-gradient(180deg, var(--bg), var(--soft)); }
.final .steps { margin: 40px auto 40px; max-width: 820px; text-align: left; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; counter-reset: s; }
.step { border-top: 1px solid var(--ln); padding-top: 22px; }
.step:before { counter-increment: s; content: "0" counter(s); font-size: 13px; font-weight: 700; color: var(--ac); }
.step h3 { font-size: 20px; margin: 10px 0 6px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--ink2); font-size: 15px; }

/* --- Rodapé ------------------------------------------------------------------ */

footer { border-top: 1px solid var(--ln); padding: 36px 0 48px; font-size: 13px; color: var(--ink3); }
footer .w { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; margin-left: 18px; }

/* --- Barra fixa no celular ---------------------------------------------------- */

.mbar { display: none; }

@media (max-width: 900px) {
  .mbar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    gap: 8px;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(14px);
    border: 1px solid var(--ln);
    border-radius: 999px;
    padding: 6px;
  }
  .mbar .b { flex: 1; height: 44px; }
}

/* --- Página legal (privacidade) ---------------------------------------------- */

.legal { max-width: 720px; margin: 0 auto; padding: 80px 24px; }
.legal h1 { font-size: 44px; text-align: left; margin: 0 0 8px; }
.legal .upd { color: var(--ink3); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal p { color: var(--ink2); font-size: 16px; line-height: 1.7; }
.legal ul { color: var(--ink2); font-size: 16px; line-height: 1.7; padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal li:last-child { margin-bottom: 0; }
.legal a { color: var(--ac); }

.toc {
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 14.5px;
}
.toc b { display: block; margin-bottom: 8px; }
.toc a { display: block; color: var(--ink2); text-decoration: none; padding: 3px 0; }
.toc a:hover { color: var(--ink); }

/* --- Página 404 ------------------------------------------------------------ */

.p404 { max-width: 640px; margin: 0 auto; padding: 96px 24px 120px; text-align: center; }
.p404 .code { font-size: 13px; font-weight: 700; color: #E07A5F; letter-spacing: 0.02em; margin-bottom: 12px; }
.p404 h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 14px; }
.p404 p { color: var(--ink2); font-size: 17px; margin: 0 0 28px; }

/* --- Botão "Falar no WhatsApp" só aparece quando houver número ----------------- */

a[data-whatsapp=""] { display: none; }

/* --- Animações de revelação (sem JS tudo já aparece) --------------------------- */

.rv { opacity: 1; transform: none; }
html.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .laptop { transform: none; }
}

/* --- Responsivo ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .links { display: none; }
  .ben { grid-template-columns: 1fr; }
  .rolebox { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .phone { display: none; }
  .scr { grid-template-columns: 1fr; }
  .side { display: none; }
  .sec { padding: 72px 0; }
  .hero { padding: 64px 0 24px; }
  .laptop { transform: none; }
}

@media (max-width: 560px) {
  .strip { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 40px repeat(2, 1fr); }
  .cols > .x { display: none; }
  .navr .b.g { display: none; }
}
