/* ===== 0. VARIÁVEIS: cores do site. Mude aqui e muda em tudo (--p e --p2 = roxos principais) ===== */

:root {
  --bg: #070521;
  --bg2: #0d0a35;
  --line: #3b2a96;
  --p: #7c3aed;
  --p2: #a855f7;
  --txt: #fff;
  --mut: #c9c3ee;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 90%; /* 16px → ~14.4px, diminui tudo que usa rem */
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at 80% 0, #2a1170 0, transparent 40%), var(--bg);
  color: var(--txt);
  line-height: 1.5;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.6rem; }
p  { font-size: 0.95rem; }

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--p2);
  outline-offset: 3px;
}

/* Texto com degradê roxo (usado em "inteligente." e "é com IA") */
.grad {
  background: linear-gradient(90deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ===== BOTÕES: .btn-primary = roxo cheio, .btn-outline = só contorno ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  border: 1px solid var(--p);
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  transition: .25s;
}

.btn-primary {
  background: linear-gradient(90deg, #6d28d9, #8b5cf6);
  box-shadow: 0 0 25px #7c3aed66;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px #8b5cf9aa;
}

.btn-outline {
  background: transparent;
}

.btn-outline:hover {
  background: #7c3aed33;
}

/* ===== 1. CABEÇALHO E MENU (.header, .nav, .dropdown, .menu-btn = botão de 3 linhas do celular) ===== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  background: #0d0a35cc;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-weight: 500;
}

.nav > a,
.dd-toggle {
  position: relative;
  padding: 6px 0;
}

.nav > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--p2);
}

.nav > a:hover,
.dd-toggle:hover {
  color: var(--p2);
}

.dropdown {
  position: relative;
}

.dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 150px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}

.dd-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
}

.dd-menu a:hover {
  background: #7c3aed33;
}

.dropdown:hover .dd-menu,
.dropdown.open .dd-menu {
  display: block;
}

.nav a.nav-cta {
  padding: 6px 16px;
  font-size: 1.05rem;
  display: block;
  text-align: center;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}


/* ===== 2. HERO: título (.hero h1) + .hero-visual, que junta o cartão (.hero-card) e a mão (.hand).
   Para mover/aumentar a mão: mude right, bottom e width em .hero-visual.
   Para mover o cartão dentro da mão: left, width em .hero-card ===== */

.hero {
  position: relative;
  min-height: 600px;
  padding: clamp(40px, 10vh, 120px) 5% 80px;
  overflow: hidden;
  border-bottom: 2px solid #6d28d9;
  border-radius: 0 0 50% 50% / 0 0 40px 40px;
}

.eyebrow {
  color: var(--p2);
  font-weight: 500;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.eyebrow::after {
  content: "";
  width: 140px;
  height: 1px;
  background: var(--line);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  max-width: 640px;
}

.hero-card {
  position: absolute;
  top: -35px;
  left: 34%;
  width: 40%;
  padding: 24px 22px;
  border: 1px solid #8b5cf6;
  border-radius: 16px;
  background: #0f0a3acc;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px #7c3aed55;
  z-index: 2;
}

.hero-card h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-card p {
  margin: 14px 0 18px;
}

.hero-card .btn {
  width: 100%;
  margin-bottom: 12px;
}

/* Mão: fica no canto direito, por cima do cartão (os dedos abraçam o cartão) e flutua de leve */

.hero-visual {
  position: absolute;
  right: 3%;
  bottom: -20px;
  width: min(700px, 50vw);
  padding-top: min(98px, 8vw);
  filter: drop-shadow(0 0 40px #7c3aed77);
}

.hand {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

@keyframes float {
  50% {
    transform: translateY(-14px);
  }

}


/* ===== 3. SERVIÇOS: .plans = grade de 2 colunas; .panel = caixas; .tiers = 3 planos; .price-box = R$ 79,90 ===== */

.services,
.portfolio,
.contact {
  padding: 60px 2.5% 20px;
  text-align: center;
}

.label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--p2);
  font-size: .85rem;
  margin-bottom: 10px;
}

.label::before,
.label::after {
  content: "";
  width: 70px;
  height: 1px;
  background: var(--line);
}

.title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.sub {
  color: #ddd;
  margin: 8px 0 24px;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 18px;
  text-align: left;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(160deg, #120c45, #080626);
}

.panel-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-head h3 {
  font-size: 1.6rem;
}

.panel-head p {
  font-size: .85rem;
  color: var(--mut);
}

.icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  font-size: 1.6rem;
}

.desc {
  margin-bottom: 20px;
  color: #ece9ff;
}

.cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  font-size: .78rem;
}

.cols h4 {
  font-size: .9rem;
  margin-bottom: 10px;
}

ul.ok li,
ul.no li {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--mut);
}

ul.ok li::before {
  content: "✓";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--p2);
  color: #fff;
  font-size: .65rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

ul.no li::before {
  content: "✕";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--p2);
  color: var(--p2);
  font-size: .6rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.cols > div:last-child {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.note {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-top: 14px;
  font-size: .72rem;
}

.note strong {
  color: #fbbf24;
}

.price-box {
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, #5b21b6, #7c3aed);
  width: fit-content;
  min-width: 210px;
}

.price-box small {
  display: block;
}

.price-box strong {
  font-size: 1.9rem;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tier {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 14px;
  font-size: .78rem;
  background: #0a0830;
  transition: .3s;
}

.tier:hover {
  transform: translateY(-4px);
  border-color: var(--p2);
}

.tier.featured {
  border: 2px solid var(--p2);
  box-shadow: 0 0 28px #8b5cf666;
  margin-top: -6px;
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--p);
  padding: 2px 16px;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

.tier h4 {
  text-align: center;
  font-size: 1rem;
}

.price {
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  margin: 10px 0;
}

.price b {
  font-size: 1.8rem;
}

.for {
  font-weight: 600;
  margin-bottom: 14px;
  min-height: 64px;
}

.conditions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 24px;
  text-align: left;
  font-size: .72rem;
  color: var(--mut);
  flex-wrap: wrap;
}

.conditions strong {
  color: beige;
}

.check {
  
  border: 2px solid #fff;
  border-radius: 8px;
  display: grid;width: 40px;
  height: 40px;
  place-items: center;
  color: red;
}

.conditions h5 {
    font-size: 1.6rem;
    color: red;
}

.cond-side {
  margin-left: auto;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  max-width: 200px;
}


/* ===== 4. PORTFÓLIO: .track rola de lado; .c1 a .c4 = fundo de cada card (troque por imagem aqui) ===== */

.carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex: 1;
  padding: 6px;
}

.track::-webkit-scrollbar {
  display: none;
}

.card {
  position: relative;
  flex: 0 0 min(260px, 75%);
  height: 150px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--p2);
}

.card h4 {
  font-size: 1.05rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px #000;
}

.mini {
  font-size: .65rem;
  color: #eee;
  background: #0006;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
}

.c1 {
  position: relative;
  overflow: hidden;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.arrow {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--p2);
  background: var(--bg2);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: .25s;
}

.arrow:hover {
  background: var(--p);
}


/* ===== 5. FORMULÁRIO DE CONTATO ===== */

.contact {
  padding-bottom: 60px;
}

form {
  max-width: 480px;
  margin: 24px auto 0;
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a0830;
  color: #fff;
  font: inherit;
}

input.invalid,
select.invalid {
  border-color: #f87171;
}

.error {
  color: #f87171;
  font-size: .85rem;
  min-height: 1.2em;
}


/* ===== 6. RODAPÉ ===== */

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px 40px;
  padding: 30px 5% 0;
  border-top: 1px solid var(--line);
  background: #050418;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}
.logo-img {
  height: 32px;
  width: auto;
}

.f-brand p {
  font-size: .85rem;
  color: white;
  margin-top: 6px;
}

.f-nav {
  display: flex;
  gap: 36px;
}

.f-nav a:hover {
  color: var(--p2);
}

.social {
  display: flex;
  gap: 12px;
  color: white;
}

.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--txt);
  border-radius: 10px;
  transition: .25s;
}

.social a:hover {
  background: var(--txt);
}

.copy {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  flex-wrap: wrap;
}


/* ===== RESPONSIVO: ajustes para tablet (até 980px) e celular (até 700px). Aqui o menu vira botão de 3 linhas ===== */

@media (max-width: 980px) {

  .plans {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 30px auto -20px;
    width: min(560px, 92%);
    padding-top: min(112px, 19vw);
  }

  .menu-btn {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 5%;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .dd-menu {
    position: static;
    display: block;
    border: 0;
    padding: 0 0 0 12px;
  }

  .footer {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 700px) {

  .hero-visual {
    padding-top: 0;
  }

  .hero-card {
    position: relative;
    left: auto;
    width: 84%;
    margin: 0 auto;
    padding: 20px 20px 28px;
  }

  .hand {
    z-index: 3;
    margin-top: -30px;
  }

  .tiers,
  .cols {
    grid-template-columns: 1fr;
  }

  .cols > div:last-child {
    border: 0;
    padding: 0;
  }

  .tier.featured {
    margin-top: 0;
  }

  .cond-side {
    margin: 0;
    border: 0;
    padding: 0;
  }

  .f-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .arrow {
    display: none;
  }

  .for {
    min-height: 0;
  }

}

@media (prefers-reduced-motion: reduce) {

  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

}


/* ===== ANIMAÇÕES DA SEÇÃO SERVIÇOS =====
   .js é adicionado pelo script.js; sem JS, tudo aparece normalmente.
   .reveal começa escondido; .visible (colocado ao rolar) faz entrar em cena. */

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.js .panel.biosite.reveal {
  transform: translateX(-50px);
}

.js .panel.website.reveal {
  transform: translateX(50px);
}

.js .panel.reveal.visible {
  transform: none;
}

/* itens das listas entram um depois do outro */

.js .ok li,
.js .no li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: calc(var(--i, 0) * 70ms + .3s);
}

.js .visible .ok li,
.js .visible .no li,
.js .visible.ok li {
  opacity: 1;
  transform: none;
}

/* plano destacado: brilho pulsando + selo com reflexo */

.tier.featured {
  animation: glow 2.8s ease-in-out infinite;
}

@keyframes glow {
  50% {
    box-shadow: 0 0 44px #a855f7cc;
  }
}

.badge {
  overflow: hidden;
}

.badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, #ffffff66 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.5s infinite;
}

@keyframes shine {
  60%,
  100% {
    transform: translateX(120%);
  }
}

/* preço do Biosite respira e ícones flutuam */

.price-box {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 26px #8b5cf688;
  }
}

.icon {
  animation: float 4s ease-in-out infinite;
}

/* cards: sobem e brilham ao passar o mouse */

.panel {
  transition: border-color .3s, box-shadow .3s;
}

.panel:hover {
  border-color: var(--p2);
  box-shadow: 0 0 30px #7c3aed44;
}

.tier:hover {
  box-shadow: 0 10px 30px #7c3aed55;
}

.js .tier.reveal.visible:hover {
  transform: translateY(-4px);
}

/* Mão e cartão no celular */
@media (max-width: 800px) {
  .hero {
    padding-bottom: 0;
  }

  .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 94%;
    margin: 24px auto 0;
    padding-top: 30vw;          /* espaço em cima da mão para o cartão */
  }

  .hero-card {
    position: absolute;
    top: 0;
    left: 30%;
    width: 46%;
    margin: 0;
    padding: 14px 16px;
  }

  .hero-card h2 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .hero-card p {
    font-size: .8rem;
    margin: 6px 0 10px;
  }

  .hero-card .btn {
    padding: 8px 14px;
    font-size: .72rem;
    white-space: nowrap;
    margin-bottom: 8px;
  }

  .hand {
    width: 100%;
    margin-top: 0;
    margin-bottom: -4vw;        /* a mão desce até a linha */
  }
}