/* ==========================================================================
   COMPONENTS — Buttons, chips, FAB, FAQ, calculator
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 1rem/1 var(--f-body);
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 24px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none }
.btn:hover { transform: translateY(-2px) }
.btn-lime { background: var(--lime); color: var(--ink) }
.btn-lime:hover { box-shadow: 0 10px 28px rgba(160, 237, 12, .4) }
.btn-ink { background: var(--ink); color: #fff }
.btn-ink:hover { box-shadow: 0 10px 28px rgba(11, 13, 8, .3) }
.btn-ghost { border-color: currentColor; background: transparent }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink) }
.btn-sm { padding: 11px 18px; font-size: .9375rem }

/* ---- Chips (stage rail) ---- */
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-d);
  color: var(--muted-d);
}

/* ---- FAQ accordion ---- */
.faq { margin-top: 44px; max-width: 820px; border-top: 1.5px solid var(--ink) }
.faq details { border-bottom: 1px solid var(--line-l) }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after {
  content: "+";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  font: 600 1.25rem/1 var(--f-body);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg) }
.faq details p { padding: 0 4px 24px; color: var(--muted-l); max-width: 62ch }

/* ---- Calculator ---- */
.calc { background: var(--ink); color: #fff; border-radius: 24px; padding: 28px; --focus: var(--lime) }
.calc h3 { font-size: 1.5rem; font-weight: 700 }
.calc label { display: block; margin-top: 20px; font-size: .9rem; color: var(--muted-d) }
.calc input {
  margin-top: 8px;
  width: 100%;
  background: var(--ink-2);
  border: 1.5px solid var(--line-d);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font: 700 1.5rem/1 var(--f-display);
  letter-spacing: -0.02em;
}
.calc input:focus-visible { border-color: var(--lime) }
.quick { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px }
.quick button {
  font: 500 .875rem var(--f-mono);
  background: transparent;
  color: #fff;
  border: 1px solid var(--line-d);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.quick button:hover { border-color: var(--lime) }
.out {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-d);
}
.out dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.out dd {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.out dd.big { color: var(--lime) }
.calc .tier { margin-top: 12px; font-size: .875rem; color: var(--muted-d); min-height: 1.4em }
.calc .btn { margin-top: 20px; width: 100% }

/* ---- Floating WhatsApp button ---- */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(11, 13, 8, .3);
  text-decoration: none;
  transition: transform .18s;
}
.fab:hover { transform: scale(1.06) }
.fab svg { width: 32px; height: 32px; position: relative }
.fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  animation: pulse 2.6s ease-out infinite;
}
.fab .tip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.fab:hover .tip, .fab:focus-visible .tip { opacity: 1 }
@keyframes pulse {
  0% { transform: scale(1); opacity: .5 }
  70%, 100% { transform: scale(1.55); opacity: 0 }
}
@media (prefers-reduced-motion: reduce) { .fab::before { animation: none; opacity: 0 } }

/* ==========================================================================
   LIGHTBOX / VISUALIZAÇÃO AMPLIADA DOS MODELOS
   ========================================================================== */
.lb-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3.5vw, 32px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .26s cubic-bezier(.2, 0, .2, 1), visibility .26s;
}
.lb-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 8, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lb-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(.96) translateY(8px);
  transition: transform .26s cubic-bezier(.2, .9, .3, 1);
}
.lb-modal.is-open .lb-container {
  transform: scale(1) translateY(0);
}
.lb-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lb-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: #fff;
  letter-spacing: -0.015em;
}
.lb-counter {
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  font-variant-numeric: tabular-nums;
}
.lb-btn-close {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, transform .18s, border-color .18s;
}
.lb-btn-close:hover {
  background: rgba(255, 255, 255, .2);
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, .3);
}
.lb-btn-close:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.lb-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.lb-viewport.is-dragging {
  cursor: grabbing;
}
.lb-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  opacity: .7;
  transition: background .35s;
  background: radial-gradient(circle, rgba(160, 237, 12, .22) 0%, transparent 70%);
}
.lb-modal[data-mode="premium"] .lb-glow {
  background: radial-gradient(circle, rgba(201, 168, 76, .3) 0%, transparent 70%);
}
.lb-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1.5px solid rgba(255, 255, 255, .14);
  box-shadow: 0 32px 72px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  will-change: transform, opacity;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.lb-modal[data-mode="premium"] .lb-card {
  border-color: rgba(201, 168, 76, .38);
  box-shadow: 0 32px 72px -12px rgba(0, 0, 0, .8), 0 0 28px rgba(201, 168, 76, .18);
}
.lb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 23, 16, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, .18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.lb-nav:hover {
  background: rgba(35, 40, 28, .95);
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-50%) scale(1.1);
}
.lb-modal[data-mode="premium"] .lb-nav:hover {
  border-color: #E8D48B;
  color: #E8D48B;
}
.lb-nav:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.lb-nav-prev {
  left: -24px;
}
.lb-nav-next {
  right: -24px;
}
.lb-bottom {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lb-hint {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .42);
  display: flex;
  align-items: center;
  gap: 6px;
}
.lb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lb-viewport.is-dragging,
body.is-lb-dragging,
body.is-lb-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}
.lb-cta {
  font-size: .88rem;
  padding: 10px 18px;
}

@media (max-width: 640px) {
  .lb-nav-prev { left: 8px; }
  .lb-nav-next { right: 8px; }
  .lb-bottom { justify-content: center; text-align: center; }
  .lb-actions { width: 100%; justify-content: center; }
  .lb-hint { width: 100%; justify-content: center; }
}
