html { scroll-behavior: smooth; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }

/* Tira o halo azul de toque/foco do mobile nos links e botões, sem tirar o
   contorno de quem navega por teclado — esse continua aparecendo via
   :focus-visible. */
a, button {
  -webkit-tap-highlight-color: transparent;
}
a:focus, button:focus {
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1D4ED8;
  font-weight: 600;
}
/* Variante pra quando o kicker cai numa seção escura (bg-primary) — o azul
   #1D4ED8 sozinho fica abaixo do mínimo de contraste WCAG AA ali. */
.label--on-dark { color: rgba(255, 255, 255, .72); }

/* Header de vidro fosco — mesma estrutura em todas as páginas do site.
   Vidro claro, como no magbarber.com (referência do dono). */
.header-glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-glass--light {
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.header-cta {
  display: inline-block;
  background: #0D1929;
  color: #ffffff;
  padding: .55rem 1.35rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 600;
  transition: background-color .2s ease, transform .15s ease;
}
.header-cta:hover { background: #1D4ED8; }
.header-cta:active { transform: scale(0.97); }

/* Botão principal em pílula — a forma da marca (o "k" é feito de três
   pílulas, e o app usa a mesma forma nos chips). Todo CTA do site é pílula,
   inclusive o do header; nada de canto quadrado nem crescer no hover. */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-pill:active { transform: scale(0.97); }
.btn-pill--accent { background: #1D4ED8; color: #fff; }
.btn-pill--accent:hover { background: #1E40AF; }
.btn-pill--ghost { border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.btn-pill--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-pill--block { display: flex; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .btn-pill, .header-cta { transition: none; }
}

/* Hambúrguer → X */
.hamburger-btn {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #0D1929;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-btn.open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open .hamburger-bar:nth-child(2) { opacity: 0; }
.hamburger-btn.open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile — desliza/esmaece em vez de aparecer seco */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
/* Fechado, o menu não pode ocupar nada — o padding e a borda das utilidades
   (pt-2 pb-5 border-t) deixavam uma faixa de ~28px embaixo do header. */
#mobile-menu:not(.open) { padding-top: 0; padding-bottom: 0; border-top-width: 0; }
#mobile-menu.open { max-height: 600px; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  #mobile-menu, .hamburger-bar { transition: none; }
}

/* Ticker de serviços — beleza, estética e bem-estar */
.ticker-track { animation: ticker-scroll 28s linear infinite; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Textura de assinatura — halftone concentrado num canto, esmaecendo, como
   retícula de cartaz/flyer. Usada no hero (fundo escuro). */
.halftone { position: relative; z-index: 0; }
.halftone::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.22) 1.5px, transparent 1.7px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(circle at 88% 8%, black 0%, black 28%, transparent 72%);
  mask-image: radial-gradient(circle at 88% 8%, black 0%, black 28%, transparent 72%);
}

.hero-highlight {
  background-image: linear-gradient(180deg, transparent 60%, rgba(29, 78, 216, .65) 60%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  /* O destaque agora cobre mais de uma palavra e quebra linha: cada linha
     ganha o próprio traço, em vez de um bloco só esticado entre elas. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .1em;
  transition: background-size .5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: .8s;
}
#hero.hero-play .hero-highlight { background-size: 100% 100%; }

/* Antes/Depois como cartaz empilhado — retângulo de destaque atrás do card,
   sem rotacionar o card em si (o input range é nativo, rotação atrapalharia o arraste) */
.ba-poster-wrap { position: relative; }
.ba-poster-wrap::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  background: #1D4ED8;
  border-radius: 1rem;
  z-index: 0;
  opacity: 0;
  transform: translate(-14px, -14px);
  transition: opacity .5s cubic-bezier(0.22, 1, 0.36, 1), transform .5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: .6s;
}
#hero.hero-play .ba-poster-wrap::before { opacity: 1; transform: translate(0, 0); }
.ba-poster-wrap .ba-slider {
  z-index: 1;
  border: 6px solid #F8FAFC;
  box-shadow: 0 20px 45px rgba(0,0,0,.35);
}

/* ===== Entrada do hero — elementos aparecem em sequência, não tudo de uma vez ===== */
.hero-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(0.22, 1, 0.36, 1), transform .55s cubic-bezier(0.22, 1, 0.36, 1);
}
#hero.hero-play .hero-in { opacity: 1; transform: none; }
.hero-in-1 { transition-delay: .05s; }
.hero-in-2 { transition-delay: .15s; }
.hero-in-3 { transition-delay: .3s; }
.hero-in-4 { transition-delay: .42s; }
.hero-in-5 { transition-delay: .56s; }

@media (prefers-reduced-motion: reduce) {
  .hero-in { transition: none; opacity: 1; transform: none; }
  .hero-highlight { transition: none; background-size: 100% 100%; }
  .ba-poster-wrap::before { transition: none; opacity: 1; transform: translate(0, 0); }
  .ticker-track { animation: none !important; }
}

/* Slider de comparação Antes/Depois — input nativo invisível cobrindo a área,
   divisor + alça desenhados à parte e sincronizados via JS (clip-path no DEPOIS) */
.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  z-index: 3;
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
  pointer-events: none;
  z-index: 2;
  transform: translateX(-50%);
}
/* Transição só durante a demonstração automática de uma vez — o arraste manual
   fica instantâneo (1:1 com o ponteiro), sem essas regras */
#ba-after.ba-demo { transition: clip-path .7s cubic-bezier(0.65, 0, 0.35, 1); }
#ba-divider.ba-demo { transition: left .7s cubic-bezier(0.65, 0, 0.35, 1); }
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #1D4ED8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/* Fade-in + slide-up genérico, usado pelas seções abaixo da dobra */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger — revela cards em sequência quando a seção .reveal entra em viewport */
.reveal .stagger-item { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible .stagger-item { opacity: 1; transform: translateY(0); }
.stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-item:nth-child(2) { transition-delay: .06s; }
.stagger-item:nth-child(3) { transition-delay: .12s; }
.stagger-item:nth-child(4) { transition-delay: .18s; }
.stagger-item:nth-child(5) { transition-delay: .24s; }
.stagger-item:nth-child(n+6) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .stagger-item { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ===== Toggle de segmento — "Para quem é o Inkare" =====
   Pílulas soltas, não um trilho único: com três segmentos o trilho não cabe
   num celular de 390px, e as pílulas quebram linha sozinhas. */
.segment-tab-btn {
  padding: .55rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, .1);
  font-size: .875rem;
  font-weight: 600;
  color: #5D6B80;
  background: #fff;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.segment-tab-btn.active { background: #1D4ED8; border-color: #1D4ED8; color: #fff; }
.segment-tab-btn:hover:not(.active) { background: rgba(29, 78, 216, .08); color: #1D4ED8; }

/* Pills de nicho — reforço de autoidentificação + SEO de cauda longa,
   dentro dos painéis de segmento. Tag discreta, não compete com o CTA. */
.niche-pill {
  display: inline-block;
  padding: .4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(29, 78, 216, .25);
  font-size: .8125rem;
  font-weight: 600;
  color: #1D4ED8;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.niche-pill:hover { background: rgba(29, 78, 216, .08); border-color: rgba(29, 78, 216, .4); }

/* ===== Passos numerados com ícone (Como funciona / Para você) — círculo com
   ícone + selo numerado sobreposto, ligados por um traço horizontal. Variante
   --on-dark inverte cores pra seções escuras (bg-primary). ===== */
.flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.flow-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(29,78,216,.35) 15%, rgba(29,78,216,.35) 85%, transparent);
  z-index: 0;
}
.flow-step { position: relative; z-index: 1; text-align: center; }
.flow-step-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1.5px solid rgba(29,78,216,.4);
  color: #1D4ED8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1D4ED8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #F8FAFC;
}
.flow-steps--on-dark::before { background: linear-gradient(to right, transparent, rgba(255,255,255,.25) 15%, rgba(255,255,255,.25) 85%, transparent); }
.flow-steps--on-dark .flow-step-icon { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); color: #fff; }
.flow-steps--on-dark .flow-step-num { border-color: #0D1929; }
@media (max-width: 767px) {
  .flow-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .flow-steps::before { display: none; }
}

/* ===== Funcionalidades — carrossel horizontal em vez de parede de cards ===== */
.feat-carousel-wrap { position: relative; }
.feat-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 4px 22px;
}
.feat-carousel::-webkit-scrollbar { display: none; }
.feat-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 250px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 22px;
}
.feat-carousel-btn {
  position: absolute;
  top: 90px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1px solid rgba(29,78,216,.3);
  color: #1D4ED8;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.feat-carousel-btn:hover { background: #1D4ED8; color: #FFFFFF; }
.feat-carousel-btn--prev { left: -4px; }
.feat-carousel-btn--next { right: -4px; }
.feat-carousel-wrap::before,
.feat-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 22px;
  width: 48px;
  z-index: 1;
  pointer-events: none;
}
.feat-carousel-wrap::before { left: 0; background: linear-gradient(to right, #F8FAFC, transparent); }
.feat-carousel-wrap::after { right: 0; background: linear-gradient(to left, #F8FAFC, transparent); }
.feat-carousel-progress {
  height: 3px;
  background: rgba(0,0,0,.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.feat-carousel-progress-bar {
  height: 100%;
  width: 20%;
  background: #1D4ED8;
  border-radius: 2px;
}
@media (max-width: 767px) {
  .feat-carousel-btn { display: none; }
  .feat-carousel-wrap::before, .feat-carousel-wrap::after { width: 24px; }
}

/* ===== FAQ accordion ===== */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
}

/* ===== Por que o Inkare — os três diferenciais ===== */
.pillar {
  background: #F8FAFC;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 1.25rem;
  padding: 1.75rem;
}
.pillar .flow-step-icon { margin: 0; background: #fff; }

/* Etiqueta de recurso anunciado mas ainda não liberado para todos. */
.soon-tag {
  display: inline-block;
  margin-left: .35rem;
  padding: .1rem .55rem;
  border-radius: 9999px;
  background: rgba(29, 78, 216, .1);
  color: #1D4ED8;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  vertical-align: 1px;
  white-space: nowrap;
}
