/*
  CSS da landing page Vital Beauty.
  A cor de marca (--mag / --magd) e os outros "design tokens" (--bg, --ink, --surface etc.)
  NÃO estão definidos aqui — eles ficam como custom properties inline no <div id="top"> do
  index.html, e trocam de valor via JS (applyTheme()) quando o usuário alterna claro/escuro.
  Ou seja: pra mudar a cor de marca, mexa no index.html, não neste arquivo.
  Ver README.md para a tabela completa de tokens e explicação da arquitetura.
*/

/* ===== RESET E BASE ===== */
* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: 'Archivo', system-ui, sans-serif;
  color: #1c1218;
  background: var(--bg, #faf5f1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

a {
  color: #7c0e38;
  text-decoration: none
}

a:hover {
  color: #ba1554
}

::selection {
  background: rgba(186, 21, 84, .16)
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #BA1554 var(--bg, #faf5f1)
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px
}

::-webkit-scrollbar-track {
  background: var(--bg, #faf5f1)
}

::-webkit-scrollbar-thumb {
  background: #BA1554;
  border-radius: 100px
}

::-webkit-scrollbar-thumb:hover {
  background: #7C0E38
}

#como-funciona,
#planos {
  scroll-margin-top: 88px
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
}

button,
a {
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease
}

:focus-visible {
  outline: 2px solid var(--mag, #ba1554);
  outline-offset: 3px;
  border-radius: 6px
}

/* ===== HERO (colagem de fotos/cartões flutuantes) ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center
}

@media (max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px
  }
}

.hero-collage {
  position: relative;
  height: 500px;
  overflow: visible
}

.hero-collage>* {
  position: absolute
}

.hero-collage .hc-2 {
  top: 0;
  left: 50%;
  transform: rotate(1.5deg);
  width: 340px;
  z-index: 1;

}

.hero-collage .hc-1 {
  bottom: 40px;
  left: 0;
  width: 230px;
  z-index: 3;
  transform: rotate(-3deg);
}

.hero-collage .hc-3 {
  bottom: 24px;
  right: 0;
  width: 210px;
  z-index: 3;
  transform: rotate(2.5deg);
}

.hero-collage .hc-pill {
  bottom: -10px;
  left: 50%;
  transform: rotate(-1.5deg);
  z-index: 4;
  white-space: nowrap;
}

@media (min-width:1180px) {
  .hero-collage {
    transform: scale(.9);
    transform-origin: center top
  }
}

@media (min-width:1180px) and (max-width:1199px) {
  .hero-woman {
    top: -62px !important
  }
}

@media (min-width:1200px) {
  .hero-collage {
    height: 540px
  }

  .hero-collage .hc-2 {
    width: 370px
  }

  .hero-collage .hc-1 {
    width: 250px;
    bottom: 50px;
    left: -10px
  }

  .hero-collage .hc-3 {
    width: 230px;
    bottom: 30px;
    right: -10px
  }
}

@media (max-width:1179px) {
  .hero-collage-frame {
    width: calc(100% + 470px);
    margin-top: 0;
    margin-left: -260px;
    margin-right: -210px;
    margin-bottom: -56px;
    display: flex;
    justify-content: center;
    overflow: hidden
  }

  .hero-collage {
    flex: none;
    width: 544px;
    height: 684px;
    transform-origin: center top
  }

  .hero-woman {
    display: block !important;
    top: 4px !important
  }
}

@media (max-width:359px) {
  .hero-collage-frame {
    height: 267px
  }

  .hero-collage {
    transform: scale(.39) translateX(80px)
  }
}

@media (min-width:360px) and (max-width:389px) {
  .hero-collage-frame {
    height: 301px
  }

  .hero-collage {
    transform: scale(.44) translateX(80px)
  }
}

@media (min-width:390px) and (max-width:429px) {
  .hero-collage-frame {
    height: 328px
  }

  .hero-collage {
    transform: scale(.48) translateX(80px)
  }
}

@media (min-width:430px) and (max-width:479px) {
  .hero-collage-frame {
    height: 363px
  }

  .hero-collage {
    transform: scale(.53) translateX(80px)
  }
}

@media (min-width:480px) and (max-width:639px) {
  .hero-collage-frame {
    height: 404px
  }

  .hero-collage {
    transform: scale(.59) translateX(80px)
  }
}

@media (min-width:640px) and (max-width:767px) {
  .hero-collage-frame {
    height: 534px
  }

  .hero-collage {
    transform: scale(.78) translateX(80px)
  }
}

@media (min-width:768px) and (max-width:900px) {
  .hero-collage-frame {
    height: 643px
  }

  .hero-collage {
    transform: scale(.94) translateX(80px)
  }
}

@media (min-width:901px) and (max-width:1023px) {
  .hero-collage-frame {
    height: 479px
  }

  .hero-collage {
    transform: scale(.7) translateX(0px)
  }
}

@media (min-width:1024px) and (max-width:1099px) {
  .hero-collage-frame {
    height: 554px
  }

  .hero-collage {
    transform: scale(.81) translateX(0px)
  }
}

@media (min-width:1100px) and (max-width:1179px) {
  .hero-collage-frame {
    height: 588px
  }

  .hero-collage {
    transform: scale(.86) translateX(0px)
  }
}

/* ===== SLIDERS DA CALCULADORA DE NO-SHOW ===== */
.noshow-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: var(--border, rgba(28, 18, 24, .1));
  outline: none;
  margin: 10px 0 4px
}

.noshow-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--mag, #ba1554);
  box-shadow: 0 4px 10px rgba(28, 18, 24, .25);
  cursor: pointer;
  transition: transform .15s ease
}

.noshow-range::-webkit-slider-thumb:hover {
  transform: scale(1.15)
}

.noshow-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--mag, #ba1554);
  box-shadow: 0 4px 10px rgba(28, 18, 24, .25);
  cursor: pointer;
  box-sizing: border-box
}

.noshow-range::-moz-range-track {
  height: 6px;
  border-radius: 100px;
  background: var(--border, rgba(28, 18, 24, .1))
}

/* ===== MENU MOBILE (hambúrguer) — breakpoint em 860px ===== */
.nav-burger {
  display: none
}

.mobile-menu {
  overflow: hidden
}

@media (max-width:860px) {
  .nav-links {
    display: none !important
  }

  .nav-burger {
    display: inline-flex !important
  }
}

@media (min-width:861px) {
  .mobile-menu {
    display: none !important
  }
}

/* ===== SEÇÃO WHATSAPP — composição foto + celular sobreposto ===== */
.wa-composite {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.wa-composite .wa-photo {
  position: static;
  width: 100%;
  min-height: 260px;
  height: 260px
}

.wa-composite .wa-chat {
  position: static !important;
  width: 100% !important;
  max-width: 262px;
  height: auto !important;
  left: auto !important;
  top: auto !important;
  margin: 0 auto
}

.wa-chat-body {
  min-height: 220px
}

@media (min-width:1024px) {
  .wa-composite {
    position: relative;
    height: 640px;
    display: block
  }

  .wa-composite .wa-photo {
    position: absolute;
    left: 0;
    top: 0;
    width: 76%;
    height: 100%
  }

  .wa-composite .wa-chat {
    position: absolute !important;
    left: 341px !important;
    top: 196px !important;
    width: 280px !important;
    height: 515px !important;
    max-width: none;
    margin: 0
  }

  .wa-diff-list {
    margin-left: 120px
  }
}

@media (max-width:640px) {
  .wa-composite .wa-photo {
    height: auto;
    min-height: 0
  }

  .wa-composite .wa-photo img {
    height: auto !important
  }

  .wa-chat-body {
    min-height: 0
  }
}

/* ===== SEÇÃO DEPOIMENTO — composição foto + card sobreposto ===== */
.testimonial-composite {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.testimonial-composite .testimonial-photo {
  position: static;
  width: 100%;
  min-height: 320px;
  height: 320px
}

.testimonial-composite .testimonial-card {
  position: static;
  width: 100%;
  max-width: 220px;
  height: 260px;
  margin: 0 auto
}

@media (min-width:1024px) {
  .testimonial-composite {
    position: relative;
    height: 520px;
    display: block
  }

  .testimonial-composite .testimonial-photo {
    position: absolute;
    left: 0;
    top: 0;
    width: 72%;
    height: 100%
  }

  .testimonial-composite .testimonial-card {
    position: absolute;
    right: -16px;
    bottom: -24px;
    width: 190px;
    height: 250px;
    max-width: none;
    margin: 0
  }
}

@media (max-width:640px) {
  .testimonial-composite .testimonial-photo {
    height: auto;
    min-height: 0
  }

  .testimonial-composite .testimonial-photo img {
    height: auto !important
  }

  .testimonial-composite .testimonial-card {
    width: 62%;
    max-width: 260px;
    height: 260px;
    margin: -110px auto 0;
    position: relative;
    z-index: 2
  }
}

/* ===== CARDS "SISTEMA COMPLETO" (bento) ===== */
.bento-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%
}

.bento-card-inner .bento-spacer {
  flex: 1
}

/* ===== SEÇÃO "AGENDA AO VIVO" — mockup de tablet widescreen ===== */
.agenda-mock {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 28px;
  background: #17101a;
  padding: 14px 14px 16px;
  box-shadow: 0 40px 90px -40px rgba(28, 18, 24, .45)
}

.agenda-mock-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a2e33;
  margin: 0 auto 10px
}

.agenda-mock-screen {
  background: var(--surface, #fff);
  border-radius: 18px;
  overflow: hidden
}

.agenda-mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border, rgba(28, 18, 24, .08))
}

.agenda-mock-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px
}

.agenda-mock-topbar-logo {
  flex: none;
  height: 26px;
  width: auto
}

.agenda-mock-topbar-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink, #1c1218)
}

.agenda-mock-topbar-date {
  font-size: 11.5px;
  color: var(--text-3, #6a5f65);
  margin-top: 2px
}

.agenda-mock-topbar-revenue {
  font-weight: 800;
  font-size: 17px;
  color: #1aa06a;
  line-height: 1;
  font-variant-numeric: tabular-nums
}

.agenda-mock-row {
  display: grid;
  grid-template-columns: 58px 46px 1.7fr 90px 108px;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border, rgba(28, 18, 24, .06))
}

.agenda-mock-row:last-child {
  border-bottom: none
}

.agenda-mock-time {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink, #1c1218);
  font-variant-numeric: tabular-nums
}

.agenda-mock-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex: none
}

.agenda-mock-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.agenda-mock-avatar-initials {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800
}

.agenda-mock-info {
  min-width: 0
}

.agenda-mock-client {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink, #1c1218);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.agenda-mock-service {
  font-size: 12.5px;
  color: var(--text-3, #6a5f65);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.agenda-mock-prof {
  color: var(--text-4, #8a7f85)
}

.agenda-mock-price {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink, #1c1218);
  text-align: right;
  font-variant-numeric: tabular-nums
}

.agenda-mock-prof-mobile {
  display: none;
  font-size: 12px;
  color: var(--text-4, #8a7f85);
  margin-top: 2px
}

.agenda-mock-status {
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  padding: 6px 8px;
  border-radius: 100px;
  white-space: nowrap
}

/* ===== SPLIT "AGENDA AO VIVO" — texto + tablet, dentro do container de 1220px ===== */
.agenda-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px
}

.agenda-split-text {
  max-width: 480px
}

.agenda-split-visual {
  display: flex;
  justify-content: center
}

.agenda-split-visual .agenda-mock {
  width: 100%;
  max-width: 620px
}

@media (min-width:900px) {
  .agenda-split {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 48px
  }

  .agenda-split-visual {
    justify-content: flex-end
  }
}

/* ===== BREAKPOINT PRINCIPAL: empilha grids de 2/3 colunas abaixo de 900px ===== */
@media (max-width:900px) {
  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 36px !important
  }

  .grid-2col.pad-card {
    padding: 32px !important
  }

  .grid-2col-sticky {
    grid-template-columns: 1fr !important;
    gap: 28px !important
  }

  .grid-2col-sticky> :first-child {
    position: static !important;
    top: auto !important
  }

  .grid-bento {
    grid-template-columns: 1fr !important
  }

  .grid-bento> :first-child {
    grid-row: auto !important
  }

  .automations-grid {
    gap: 12px !important;
    width: 100% !important;
    height: auto !important
  }

  .addon-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left
  }

  .addon-banner button {
    width: 100%;
    justify-content: center
  }

  .plans-head {
    align-items: flex-start !important
  }

  .footer-row {
    justify-content: center !important;
    text-align: center
  }

  h1 {
    font-size: 50px !important;
    max-width: none !important
  }

  .h2-standard {
    font-size: 33px !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important
  }

  .bento-agenda-card {
    width: 100% !important;
    max-width: none !important;
    height: auto !important
  }

  .bento-week-box {
    width: 100% !important;
    height: auto !important
  }

  .bento-week-grid {
    width: 100% !important;
    height: auto !important;
    grid-template-columns: 22px repeat(5, minmax(0, 1fr)) !important;
    gap: 3px !important
  }

  .bento-day-label {
    width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
    font-size: 10px !important;
    position: static !important;
    top: auto !important
  }

  .bento-crosssell-box {
    width: 100% !important;
    height: auto !important
  }

  .bento-relatorios-card {
    width: 100% !important;
    height: auto !important
  }

  .agenda-mock-row {
    grid-template-columns: 58px 48px 1.5fr 96px !important;
    gap: 14px !important;
    padding: 15px 20px !important
  }

  .agenda-mock-price {
    display: none !important
  }

  .agenda-mock-prof {
    display: none !important
  }

  .agenda-mock-prof-mobile {
    display: block !important
  }

  .h2-poster {
    font-size: 37px !important;
    max-width: none !important
  }

  .section-pad {
    padding-top: 56px !important;
    padding-bottom: 56px !important
  }
}

/* .grid-plans has a fixed 972px desktop width; below ~1040px (972 + 34px*2
   wrap padding) it overflows its container before the 900px stack breakpoint
   kicks in, so it gets its own wider, dedicated threshold. */
@media (max-width:1040px) {
  .grid-plans {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    height: auto !important
  }
}

@media (max-width:480px) {
  .automations-grid {
    grid-template-columns: 1fr !important
  }
}

/* ===== BREAKPOINT MENOR: ajustes finos de tipografia/padding abaixo de 640px ===== */
@media (max-width:640px) {
  body {
    overflow-x: hidden
  }

  h1 {
    font-size: 37px !important;
    line-height: 1.05 !important
  }

  .h2-standard {
    font-size: 26px !important
  }

  .h2-poster {
    font-size: 30px !important
  }

  .hero-stat-number {
    font-size: 36px !important
  }

  .calc-result {
    font-size: 30px !important
  }

  .price-digit {
    font-size: 44px !important
  }

  .wrap {
    padding-left: 20px !important;
    padding-right: 20px !important
  }

  .grid-2col.pad-card {
    padding: 24px !important;
    border-radius: 20px !important
  }

  .noshow-range {
    height: 8px !important
  }

  .noshow-range::-webkit-slider-thumb {
    width: 30px !important;
    height: 30px !important;
    border-width: 5px !important
  }

  .noshow-range::-moz-range-thumb {
    width: 30px !important;
    height: 30px !important;
    border-width: 5px !important
  }

  .agenda-mock {
    border-radius: 24px !important;
    padding: 12px 10px 16px !important
  }

  .agenda-mock-screen {
    border-radius: 16px !important
  }

  .agenda-mock-topbar {
    padding: 16px 18px !important
  }

  .agenda-mock-row {
    grid-template-columns: 46px 42px 1fr 86px !important;
    gap: 10px !important;
    padding: 12px 14px !important
  }

  .agenda-mock-prof {
    display: none !important
  }

  .agenda-mock-avatar {
    width: 42px !important;
    height: 42px !important
  }

  .agenda-mock-avatar img {
    display: none !important
  }

  .agenda-mock-avatar-initials {
    display: flex !important;
    font-size: 13px !important
  }

  .agenda-mock-time {
    font-size: 13.5px !important
  }

  .agenda-mock-client {
    font-size: 14.5px !important
  }

  .agenda-mock-service {
    font-size: 13px !important
  }

  .agenda-mock-prof-mobile {
    font-size: 12px !important
  }

  .agenda-mock-status {
    font-size: 11px !important;
    letter-spacing: -0.01em !important;
    padding: 6px 6px !important
  }
}

/* ===== SCROLL-REVEAL ANIMATIONS (charts + counters) ===== */
.reveal-el,
.reveal-chart {
  opacity: 1;
  transform: none
}

@media (prefers-reduced-motion:no-preference) {
  .reveal-el {
    opacity: 0;
    transform: translateY(24px) scale(.97);
    transition: opacity 1.4s cubic-bezier(.16, 1, .3, 1), transform 1.4s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform
  }

  .reveal-el.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1)
  }

  .reveal-el.reveal-delay-1 {
    transition-delay: .2s
  }

  .reveal-el.reveal-delay-2 {
    transition-delay: .4s
  }

  .reveal-el.reveal-delay-3 {
    transition-delay: .6s
  }

  /* Distinct "pop" entrance for round/circular chart elements (donuts, rings) */
  .reveal-chart {
    opacity: 0;
    transform: scale(.55) rotate(-14deg);
    transition: opacity 1.6s cubic-bezier(.16, 1, .3, 1), transform 1.6s cubic-bezier(.22, 1.2, .36, 1);
    will-change: opacity, transform
  }

  .reveal-chart.is-visible {
    opacity: 1;
    transform: scale(1) rotate(0deg)
  }

  /* WhatsApp chat bubbles: pop in just before their text starts typing */
  .wa-bubble {
    opacity: 0;
    transform: translateY(10px) scale(.92);
    transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1)
  }

  .wa-bubble.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1)
  }

  /* blinking caret while a bubble is actively "typing" */
  .wa-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 11px;
    margin-left: 2px;
    background: currentColor;
    vertical-align: -1px;
    animation: wa-caret .8s steps(1) infinite
  }

  @keyframes wa-caret {

    0%,
    49% {
      opacity: 1
    }

    50%,
    100% {
      opacity: 0
    }
  }
}