/* ConfiaPlus — v4 (healthtech premium, escandinavo/suíço, app-first) */
:root {
  --c-navy: #071a3d; /* azul-marinho profundo */
  --c-navy-2: #0c2450;
  --c-blue: #1b59e5; /* azul ConfiaPlus */
  --c-blue-600: #1546b8;
  --c-electric: #2f6bff; /* azul elétrico de destaque */
  --c-surface: #eef4ff; /* azul-claro de superfície */
  --c-surface-2: #f5f8ff;
  --c-blue-50: #eff4fe;
  --c-blue-100: #dce6fc;

  --c-ink: #0d172a; /* texto principal */
  --c-ink-2: #283450;
  --c-mut: #5d6880; /* texto secundário */
  --c-mut-2: #8a93a8;
  --c-line: #e7eaf2;
  --c-line-2: #f0f2f8;
  --c-bg: #ffffff;
  --c-bg-soft: #fafbfe;

  --c-green: #2e9e6b; /* confirmações / incluído */
  --c-green-50: #e9f6ef;
  --c-wa: #25d366;

  --sh-xs: 0 1px 2px rgba(7, 26, 61, 0.05);
  --sh-sm: 0 1px 3px rgba(7, 26, 61, 0.07), 0 1px 2px rgba(7, 26, 61, 0.04);
  --sh-md:
    0 8px 20px -10px rgba(7, 26, 61, 0.14), 0 2px 6px rgba(7, 26, 61, 0.05);
  --sh-lg:
    0 18px 40px -16px rgba(7, 26, 61, 0.18), 0 5px 12px rgba(7, 26, 61, 0.06);
  --sh-xl:
    0 34px 64px -22px rgba(7, 26, 61, 0.24), 0 10px 22px rgba(7, 26, 61, 0.08);
  --sh-blue: 0 12px 26px -10px rgba(27, 89, 229, 0.42);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-3xl: 34px;
  --r-full: 999px;

  --f-head:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body {
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--c-blue);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 26px;
}
@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }
}
section {
  position: relative;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-blue);
  padding: 6px 13px;
  background: var(--c-surface);
  border-radius: var(--r-full);
  border: 1px solid var(--c-blue-100);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-blue);
}
.eyebrow.on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}
.eyebrow.on-dark .dot {
  background: #7fa6ff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.14s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1.5px);
}
.btn:active {
  transform: translateY(0);
}
.btn-blue {
  background: var(--c-blue);
  color: #fff;
  box-shadow: var(--sh-blue);
}
.btn-blue:hover {
  background: var(--c-blue-600);
}
.btn-navy {
  background: var(--c-navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--c-navy-2);
}
.btn-ghost {
  background: #fff;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover {
  border-color: #c7cee0;
  box-shadow: var(--sh-xs);
}
.btn-outline {
  background: #fff;
  color: var(--c-blue);
  border-color: var(--c-blue-100);
}
.btn-outline:hover {
  border-color: var(--c-blue);
  background: var(--c-surface);
}
.btn-white {
  background: #fff;
  color: var(--c-navy);
}
.btn-white:hover {
  background: var(--c-surface);
}
.btn-on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.18);
}
.btn-wa {
  background: #fff;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-wa .wa {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-wa);
  color: #fff;
  flex-shrink: 0;
}
.btn-wa:hover {
  border-color: #bee7cd;
}
.btn-sm {
  font-size: 13px;
  padding: 10px 15px;
}
.btn-lg {
  font-size: 15.5px;
  padding: 16px 26px;
}

/* Section rhythm */
.sect {
  padding: 92px 0;
}
.sect-sm {
  padding: 64px 0;
}
@media (max-width: 900px) {
  .sect {
    padding: 64px 0;
  }
  .sect-sm {
    padding: 48px 0;
  }
}
.head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.head.left {
  text-align: left;
  margin-left: 0;
}
.head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  margin: 15px 0 14px;
}
.head h2 .ac {
  color: var(--c-blue);
}
.head p {
  font-size: 16.5px;
  color: var(--c-mut);
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
}

.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xs);
}

/* Marquee */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.marquee:hover {
  animation-play-state: paused;
}

/* Float */
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.floaty {
  animation: floaty 7s ease-in-out infinite;
}
.floaty-2 {
  animation: floaty 9s ease-in-out infinite;
  animation-delay: -2.5s;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 158, 107, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(46, 158, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 158, 107, 0);
  }
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse-dot 2s infinite;
}

/* Photo frame */
.pframe {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--c-surface);
  box-shadow: var(--sh-lg);
}
.pframe img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pframe:hover img {
  transform: scale(1.03);
}

/* FAQ */
.faq {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.faq.open {
  border-color: var(--c-blue-100);
  box-shadow: var(--sh-sm);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  user-select: none;
  color: var(--c-ink);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-q:hover {
  color: var(--c-blue);
}
.faq-ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition:
    transform 0.24s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.faq.open .faq-ic {
  transform: rotate(45deg);
  background: var(--c-blue);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq.open .faq-a {
  max-height: 440px;
}
.faq-a-in {
  padding: 0 22px 20px;
  color: var(--c-mut);
  line-height: 1.6;
  font-size: 14.5px;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-line);
  gap: 9px;
}
.sticky-cta .btn {
  flex: 1;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  .floaty,
  .floaty-2,
  .marquee,
  .pframe img {
    animation: none !important;
    transition: none !important;
  }
}

/* Skeleton */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
.skel {
  background: linear-gradient(90deg, #eef1f7 0%, #f6f8fc 50%, #eef1f7 100%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
}

@media (max-width: 720px) {
  .head h2 {
    font-size: 27px !important;
  }
}
:focus-visible {
  outline: 2px solid var(--c-electric);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Header nav visibility (compartilhado landing + páginas SEO) ---- */
.nav-desktop {
  display: flex;
  gap: 2px;
}
.cta-desktop {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-cta {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (max-width: 1000px) {
  .nav-desktop,
  .cta-desktop {
    display: none;
  }
  .mobile-cta {
    display: flex !important;
  }
  .info-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .rel-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .cmp-toggle-wrap {
    overflow-x: auto;
  }
  .plan-cols {
    grid-template-columns: 1fr !important;
  }
  .spec-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .info-cards {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .spec-grid {
    grid-template-columns: 1fr !important;
  }
}
