/* ═══════════════════════════════════════════════════════════
   KLYVO v2 — ESTILOS POR SEÇÃO
   Breakpoint de 1 coluna: 1080px (grids largos) / 760px (mobile)
   ═══════════════════════════════════════════════════════════ */

/* ═══ NAV ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar > .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--text-1);
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color .18s ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 4px 0;
  transition: color .18s ease;
}

.nav-dropdown-trigger svg {
  transition: transform .22s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown-trigger:focus-visible {
  color: var(--primary-dark);
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: 268px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  transition: background .15s ease, color .15s ease;
}

.nav-dropdown-panel a:hover {
  background: var(--bg-2);
  color: var(--primary-dark);
}

.nav-dropdown-panel li:last-child a {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--primary-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-1);
  transition: transform .25s ease, opacity .25s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 24px 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-120%);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.mobile-menu.open {
  transform: none;
}

.mobile-menu a:not(.btn) {
  padding: 13px 4px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.mobile-menu .btn {
  margin-top: 14px;
}

/* ═══ HERO ══════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(46px, 7vw, 84px)) 0 clamp(56px, 7vw, 90px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle,
      color-mix(in srgb, var(--primary) 16%, transparent),
      transparent 68%);
  opacity: var(--glow-opacity);
  pointer-events: none;
  transition: opacity .3s ease;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -180px;
  left: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle,
      color-mix(in srgb, var(--accent) 12%, transparent),
      transparent 70%);
  opacity: var(--glow-opacity);
  pointer-events: none;
  transition: opacity .3s ease;
}

.hero > .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero-badge {
  /* flex (não inline-flex): garante linha própria, sem risco de
     ficar lado a lado com o seletor de público em larguras onde
     ambos caberiam na mesma linha (ex: tablets ~800-1000px). */
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--primary-deep);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
}

/* Sublinhado orgânico traçado à mão (SVG), não gradient-text —
   assinatura visual mais editorial e menos "IA genérica". */
.hero h1 .highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  color: var(--primary-deep);
}

.highlight-underline {
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 0.24em;
  overflow: visible;
}

.highlight-underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: .85;
}

/* Seletor de público: pills leves, não competem com o título por
   atenção — trocam só a lede logo abaixo. flex (não inline-flex):
   garante linha própria, sem risco de ficar ao lado do badge em
   larguras onde ambos caberiam na mesma linha (ex: tablets). */
.hero-audience {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.hero-audience-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}

.hero-audience-pill:hover {
  color: var(--text-1);
}

.hero-audience-pill.active {
  color: var(--primary-deep);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-3);
  max-width: 56ch;
  animation: hero-sub-fade .32s ease;
}

@keyframes hero-sub-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-microcopy {
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-3);
}

/* Hero visual — mockup com screenshot real, levemente rotacionado e
   destacado por um glow de marca atrás, para quebrar a simetria do
   layout 1fr/1fr genérico de SaaS. */
.hero-visual {
  position: relative;
  transform: rotate(1.1deg);
}

.hero-visual-glow {
  position: absolute;
  inset: -8% -12%;
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 30%, transparent),
      color-mix(in srgb, var(--teal) 22%, transparent) 55%,
      color-mix(in srgb, var(--accent) 20%, transparent));
  filter: blur(46px);
  opacity: calc(.55 * var(--glow-opacity));
  transform: rotate(-2deg);
}

.hero-mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mockup-screenshot {
  width: 100%;
  height: auto;
}

.hero-float {
  position: absolute;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  animation: float 5s ease-in-out infinite;
  transform: rotate(-1.1deg);
}

.hero-float-1 {
  bottom: 22px;
  left: -30px;
  animation-delay: -1.4s;
}

.hero-float-2 {
  top: -22px;
  right: -26px;
  transform: rotate(1.4deg);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.float-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
}

.float-value {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
}

.float-chip {
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
}

.float-note {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ═══ MÓDULOS — marquee tipo "specs", separadores finos ══ */
.guarantees {
  padding: 26px 0;
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

.guarantees-marquee {
  position: relative;
  overflow: hidden;
  /* Fade nas bordas: os itens não nascem/somem bruscamente. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.guarantees-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: guarantees-scroll 28s linear infinite;
}

.guarantees-marquee:hover .guarantees-track {
  animation-play-state: paused;
}

@keyframes guarantees-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}

@media (prefers-reduced-motion: reduce) {
  .guarantees-track {
    animation: none;
  }
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  padding: 4px 26px;
  white-space: nowrap;
  border-left: 1px solid var(--border-2);
}

.guarantee-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary-dark);
}

.guarantee-icon svg {
  width: 15px;
  height: 15px;
}

.guarantee-item strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ═══ DORES ═════════════════════════════════════════════ */
.dores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.dor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 0;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.dor-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--red) 30%, transparent);
  box-shadow: var(--shadow-md);
}

.dor-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dor-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--red) 10%, transparent);
  color: #dc2626;
}

.dor-icon svg {
  width: 23px;
  height: 23px;
}

.dor-card h3 {
  margin-bottom: 0;
}

.dor-card p {
  font-size: 0.95rem;
  color: var(--text-3);
}

/* ═══ MÓDULOS — blocos zigue-zague com âncora própria ══ */
.modules-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.module-block {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.module-block.reversed .module-copy {
  order: 2;
}

.module-block.reversed .module-visual {
  order: 1;
}

.module-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.module-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--c, var(--primary)) 12%, transparent);
  color: var(--c, var(--primary));
}

.module-icon svg {
  width: 23px;
  height: 23px;
}

.module-copy .tag {
  margin-bottom: 0;
}

/* Título duplicado: um dentro do heading (só aparece no mobile, ao
   lado do ícone), outro na posição normal (só aparece no desktop,
   abaixo do heading). Evita duplicar no DOM ~ dois breakpoints
   diferentes de layout com o mesmo conteúdo. */
.module-heading-title {
  display: none;
}

.module-title-desktop {
  display: block;
}

.module-title {
  margin-bottom: 14px;
}

.module-copy p {
  color: var(--text-3);
  font-size: 1.02rem;
}

.module-copy .feat-roi {
  display: block;
  margin-top: 18px;
  padding-top: 0;
  border-top: none;
}

.module-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c, var(--primary));
  transition: gap .2s ease;
}

.module-link:hover {
  gap: 11px;
}

.module-visual {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.module-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c, var(--primary));
  opacity: .1;
  filter: blur(40px);
  transform: scale(.85);
}

.module-visual img {
  width: 100%;
  height: auto;
}

/* ═══ FUNCIONALIDADES SECUNDÁRIAS ═══════════════════════ */
.feat-roi {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-2);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c, var(--primary));
}

.feat-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.feat-more-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-3);
}

.feat-more-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.feat-chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.mid-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
}

.mid-cta-note {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ═══ PLANOS ════════════════════════════════════════════ */
.pricing-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 42px;
}

.toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-3);
  transition: color .2s ease;
}

.toggle-label.active {
  color: var(--text-1);
  font-weight: 700;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--border-2);
  cursor: pointer;
  transition: background .25s ease;
  flex-shrink: 0;
}

.toggle-switch.yearly {
  background: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.toggle-switch.yearly::after {
  transform: translateX(24px);
}

.toggle-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: #059669;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
  /* stretch (padrão) mantém os cards com a mesma altura, alinhando os
     botões "Começar grátis" na base — `.plan-features` tem flex:1. */
  align-items: stretch;
}

.plan-card {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--primary), var(--teal) 55%, var(--accent)) border-box;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--primary) calc(18% * var(--glow-opacity)), transparent);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1px;
  margin-bottom: 6px;
}

.price-before {
  flex-basis: 100%;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-4);
  text-decoration: line-through;
  margin-bottom: 2px;
  min-height: 1.2em;
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-3);
  margin-right: 3px;
}

.price-int,
.price-frac {
  font-variant-numeric: tabular-nums;
}

.price-int {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-frac {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.price-period {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-3);
  margin-left: 3px;
}

.plan-desc {
  font-size: 0.92rem;
  color: var(--text-3);
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  min-height: 3em;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.91rem;
  color: var(--text-2);
  line-height: 1.45;
}

.fi {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.fi.ok {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: #059669;
}

.fi.no {
  background: var(--bg-3);
  color: var(--text-4);
}

.plan-features li.off {
  color: var(--text-4);
}

.multi-clinic-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--primary), var(--teal) 55%, var(--accent)) border-box;
  border: 1.5px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease;
}

.multi-clinic-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) calc(16% * var(--glow-opacity)), transparent);
}

.multi-clinic-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.multi-clinic-text span {
  display: block;
  margin-top: 2px;
  font-size: 0.88rem;
  color: var(--text-3);
}

/* ═══ FEITO POR DENTISTAS (fundadores) ══════════════════ */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 22px;
  margin-bottom: 44px;
}

.founder-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.founder-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.founder-caption {
  padding: 16px 18px 18px;
}

.founder-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
}

.founder-caption span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.4;
}

.founders-bottom {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.founders-bottom p {
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.65;
}

.founders-bottom strong {
  color: var(--text-1);
}

.founders-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
  transition: gap .2s ease;
}

.founders-link:hover {
  gap: 11px;
}

.founders-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.founders-cta span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-3);
}

/* ═══ DEPOIMENTOS ═══════════════════════════════════════ */
.ts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.ts-card {
  display: flex;
  flex-direction: column;
}

.ts-stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.ts-card blockquote {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 22px;
}

.ts-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.ts-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
}

.ts-author strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.ts-role,
.ts-clinic {
  display: block;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ═══ FAQ ═══════════════════════════════════════════════ */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item.open {
  border-color: color-mix(in srgb, var(--primary) 42%, transparent);
  box-shadow: var(--shadow-sm);
}

/* O botão vive dentro de um <h3> (semântica de accordion);
   zeramos o heading para que o estilo real fique no botão. */
.faq-item h3 {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.4;
}

.faq-q:hover {
  color: var(--primary-dark);
}

.faq-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary-dark);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.16, 1, .3, 1);
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  padding: 0 22px 21px;
  font-size: 0.95rem;
  color: var(--text-3);
}

/* ═══ CTA FINAL ═════════════════════════════════════════ */
.cta-final {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0;
  text-align: center;
  background: linear-gradient(160deg, var(--primary-deep), #082f49 55%, #0b1220);
  color: #fff;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 120%);
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle,
      color-mix(in srgb, var(--primary) 45%, transparent),
      transparent 66%);
  opacity: calc(.55 * var(--glow-opacity));
  pointer-events: none;
  transition: opacity .3s ease;
}

.cta-final > .container {
  position: relative;
  z-index: 1;
}

.cta-final .tag {
  background: rgba(255, 255, 255, .12);
  color: #e0f2fe;
  border-color: rgba(255, 255, 255, .24);
}

.cta-final h2 {
  color: #fff;
  max-width: 20ch;
  margin-inline: auto;
}

.cta-final p {
  max-width: 60ch;
  margin: 20px auto 0;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, .78);
}

.cta-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.cta-final .btn-primary {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 8px 30px rgba(255, 255, 255, calc(.2 * var(--glow-opacity)));
}

.cta-final .btn-primary:hover {
  box-shadow: 0 14px 40px rgba(255, 255, 255, calc(.3 * var(--glow-opacity)));
}

.cta-final .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
}

.cta-final .btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  color: #fff;
}

.cta-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, .7);
}

.cta-note .sep {
  opacity: .45;
}

/* ═══ FOOTER ════════════════════════════════════════════ */
footer {
  background: #0b1220;
  color: rgba(255, 255, 255, .68);
  padding: clamp(48px, 6vw, 72px) 0 30px;
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand .nav-logo {
  color: #fff;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 34ch;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px 30px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.fc-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  margin-bottom: 4px;
}

.footer-contact-item a {
  line-height: 1.45;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, .5);
}

.footer-seals {
  display: flex;
  gap: 10px;
}

.seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
}

.seal svg {
  width: 13px;
  height: 13px;
}

/* ═══ WHATSAPP FLUTUANTE ════════════════════════════════ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  transition: opacity .28s ease, transform .28s ease;
}

/* No mobile o botão cobria a lede do hero; ele só entra depois que o
   usuário rola para além da primeira tela. */
.wa-float.hidden {
  opacity: 0;
  transform: scale(.8) translateY(10px);
  pointer-events: none;
}

.wa-btn {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 26px rgba(37, 211, 102, calc(.42 * var(--glow-opacity)));
}

.wa-btn:hover {
  background: #1fb855;
  transform: translateY(-3px) scale(1.04);
}

.wa-btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.wa-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--bg);
}

.wa-tooltip {
  position: absolute;
  right: 68px;
  bottom: 4px;
  width: 230px;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}

.wa-tooltip.show {
  opacity: 1;
  transform: none;
}

/* ═══ STICKY CTA (mobile) ═══════════════════════════════ */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 88;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .1);
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.sticky-cta.show {
  transform: none;
}

.sticky-cta-text strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
}

.sticky-cta-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ═══ EXIT-INTENT POPUP ═════════════════════════════════ */
.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.exit-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.exit-modal {
  position: relative;
  width: min(470px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 38px 32px 32px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  text-align: center;
  transform: scale(.94) translateY(12px);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1);
}

.exit-overlay.show .exit-modal {
  transform: none;
}

.exit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--text-3);
  background: var(--bg-3);
}

.exit-close:hover {
  background: var(--border);
  color: var(--text-1);
}

.exit-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary-dark);
}

.exit-mark svg {
  width: 27px;
  height: 27px;
}

.exit-modal h3 {
  font-size: 1.42rem;
  margin-bottom: 10px;
}

.exit-modal > p {
  font-size: 0.96rem;
  color: var(--text-3);
  margin-bottom: 20px;
}

.exit-offer {
  padding: 17px 19px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.5;
  margin-bottom: 22px;
}

.exit-offer strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.97rem;
  color: var(--text-1);
  margin-bottom: 5px;
}

.exit-dismiss {
  margin-top: 14px;
  font-size: 0.87rem;
  color: var(--text-4);
  cursor: pointer;
}

.exit-dismiss:hover {
  color: var(--text-2);
  text-decoration: underline;
}

/* ═══ PAINEL TWEAKS ═════════════════════════════════════ */
.tweaks {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 95;
  font-family: var(--font-body);
}

.tweaks-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--text-2);
  transition: transform .2s ease, color .2s ease;
}

.tweaks-toggle:hover {
  transform: rotate(45deg);
  color: var(--primary-dark);
}

.tweaks-toggle svg {
  width: 21px;
  height: 21px;
}

.tweaks-panel {
  position: absolute;
  left: 0;
  bottom: 56px;
  width: 250px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.tweaks-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.tweaks-row + .tweaks-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.tweaks-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 9px;
}

.swatches {
  display: flex;
  gap: 9px;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--border);
  transition: transform .18s ease, box-shadow .18s ease;
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch.active {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px currentColor;
}

.tweaks-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--border-2);
  transition: background .22s ease;
}

.mini-switch.on {
  background: var(--primary);
}

.mini-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}

.mini-switch.on::after {
  transform: translateX(18px);
}

.tweaks-hint {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-4);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .module-block,
  .module-block.reversed .module-copy,
  .module-block.reversed .module-visual {
    grid-template-columns: minmax(0, 1fr);
    order: initial;
  }

  .module-block {
    display: block;
  }

  .module-visual {
    margin-top: 28px;
  }

  .hero > .container {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-badge {
    margin-inline: auto;
  }

  .hero-audience {
    justify-content: center;
    margin-inline: auto;
  }

  .hero-visual {
    max-width: 620px;
    margin-inline: auto;
  }

  .hero-float-1 { left: -8px; }
  .hero-float-2 { right: -8px; }

  .footer-top {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 760px) {
  .container {
    padding-inline: 18px;
  }

  /* No mobile a tag ao lado do ícone (ex: "AGENDA") é redundante com
     o título — troca de lugar: some a tag, o título sobe pra ficar
     ao lado do ícone, ganhando espaço vertical. */
  .module-heading-tag {
    display: none;
  }

  .module-heading-title {
    display: block;
    margin-bottom: 0;
  }

  .module-title-desktop {
    display: none;
  }

  /* Chips menores cabem mais por linha, reduzindo a altura do bloco
     "o sistema também tem" — em vez de cada chip longo sozinho numa
     linha, vários ficam lado a lado. */
  .feat-chip {
    padding: 6px 11px;
    font-size: 0.78rem;
  }

  .feat-more-chips {
    gap: 8px;
  }

  /* Menos respiro no topo aproxima o título e o CTA da primeira tela. */
  .hero {
    padding-top: calc(var(--nav-h) + 24px);
  }

  .hero > .container {
    gap: 26px;
  }

  /* No mobile o texto vem primeiro (título + CTA precisam aparecer
     rápido); os cards flutuantes sobre o screenshot, mais abaixo,
     seriam só reforço decorativo — as mesmas métricas já aparecem
     nas telas reais da seção "Klyvo por dentro". */
  .hero-float {
    display: none;
  }

  /* Recorta a altura do screenshot para caber título + lede + CTA na
     primeira tela; a imagem inteira reaparece em "Klyvo por dentro".
     Rotação removida: em telas estreitas ela desalinha o corte do
     object-fit e invade o container. */
  .hero-visual {
    max-width: 420px;
    transform: none;
  }

  .hero-mockup {
    max-height: 34vh;
    overflow: hidden;
  }

  .hero-mockup .mockup-screenshot {
    object-fit: cover;
    object-position: top left;
    height: 100%;
  }

  .hero-badge {
    margin-bottom: 16px;
  }

  /* Os 2 CTAs ficam lado a lado mesmo em telas estreitas, dividindo a
     largura igualmente — evita empilhar e empurrar o resto do conteúdo
     para baixo da primeira dobra. */
  .hero-cta-row .btn-lg {
    flex: 1 1 0;
    padding-inline: 12px;
  }

  /* Em telas estreitas o pill único quebra as 3 opções de forma
     desigual (2 + 1 sobrando). Vira grid de 3 colunas fixas, sempre
     numa linha só, com texto menor para caber "Múltiplas Clínicas". */
  .hero-audience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .hero-audience-pill {
    padding: 8px 6px;
    font-size: 0.72rem;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .plan-card,
  .dor-card,
  .card {
    padding: 24px 20px;
  }

  .wa-float {
    bottom: 84px;
    right: 16px;
  }

  /* Não deixa o balão ultrapassar a lateral em telas estreitas */
  .wa-tooltip {
    width: min(230px, calc(100vw - 96px));
  }

  .tweaks {
    left: 16px;
    bottom: 84px;
  }

  .tweaks-panel {
    width: min(250px, calc(100vw - 44px));
  }

  .sticky-cta {
    display: flex;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
