/* ==========================================================================
   Kivo Digital: estilos do site
   Cores e fontes ficam nas variáveis do :root. Para mudar uma cor no site
   inteiro, troque o valor aqui em cima.
   ========================================================================== */

:root {
  /* Paleta da marca (ver BRAND.md) */
  --roxo-50: #F1EDFF;
  --roxo-100: #E2DAFF;
  --roxo-200: #C9BEFF;
  --roxo-300: #9B84FF;
  --roxo-400: #B9A8FF;
  --roxo-500: #7C5CFF;
  --roxo-700: #5B3FD9;
  --grafite-950: #070B14;
  --grafite-900: #0B1220;
  --grafite-800: #18213A;
  --grafite-700: #1F2A3D;
  --grafite-600: #3E4A63;
  --grafite-500: #5B6B82;
  --grafite-400: #8C98AD;
  --grafite-300: #C9D1DD;
  --grafite-100: #E9EDF3;
  --gelo-50: #F5F7FA;
  --branco: #FFFFFF;
  --lima-500: #C6F432;
  --lima-700: #9BC21F;
  --erro-bg: #FFF1F0;
  --erro-texto: #A8231B;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;

  --header-h: 72px;

  /* Espaçamentos do manual da marca: 96px entre seções no computador, 64px no celular */
  --section-y: 96px;
  --section-gap: 48px; /* entre o título da seção e o conteúdo */
}
@media (max-width: 767px) {
  :root { --section-y: 64px; --section-gap: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--grafite-950);
  color: var(--grafite-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--roxo-700); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--roxo-500);
  outline-offset: 3px;
}
input, textarea, button { font-family: inherit; }
img { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--roxo-100); color: var(--grafite-900); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.icon { flex: none; display: block; fill: currentColor; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon-arrow { fill: var(--lima-500); }
.accent { color: var(--roxo-500); }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 247, 250, 0.06);
}
.nav {
  max-width: 1280px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; padding: 4px 0; }
.nav__logo img { height: 26px; width: auto; }
.nav__right { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.nav__link { color: var(--grafite-300); font-size: 15px; font-weight: 500; }
.nav__link:hover { color: var(--gelo-50); text-decoration: none; }
.nav__cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--lima-500); color: var(--grafite-900);
  font-size: 15px; font-weight: 500;
}
.nav__cta:hover { background: var(--lima-700); text-decoration: none; }

.lang {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid rgba(245, 247, 250, 0.18); border-radius: 999px;
}
.lang__btn {
  min-height: 34px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; cursor: pointer;
  background: transparent; color: var(--grafite-300);
  transition: background .2s ease, color .2s ease;
}
.lang__btn[aria-pressed="true"] { background: var(--lima-500); color: var(--grafite-900); }

.menu-toggle {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(245, 247, 250, 0.18); background: transparent;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--gelo-50); border-radius: 2px; }

.mobile-menu {
  border-top: 1px solid rgba(245, 247, 250, 0.08);
  padding: 8px 24px 24px; display: none; flex-direction: column; gap: 4px;
}
.mobile-menu__link { color: var(--gelo-50); font-weight: 500; padding: 12px 0; font-size: 18px; }
.mobile-menu__cta {
  margin-top: 8px; display: flex; align-items: center; justify-content: center; min-height: 48px;
  border-radius: 999px; background: var(--lima-500); color: var(--grafite-900); font-weight: 500;
}
.mobile-menu__cta:hover { text-decoration: none; }

/* Abaixo de 1024px os 4 links não cabem: entra o menu ☰ */
@media (max-width: 1023px) {
  .nav__link, .nav__cta { display: none; }
  .menu-toggle { display: flex; }
  .header.is-menu-open .mobile-menu { display: flex; }
}

/* ---------- Abertura (hero) ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 160px; background: var(--grafite-950); overflow: hidden;
}
.hero__glow {
  position: absolute; left: 50%; bottom: -38vh; width: 120vw; height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.38), rgba(124, 92, 255, 0) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative; max-width: 1100px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(24px, 3.5vw, 36px);
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.1; letter-spacing: -0.02em;
  display: flex; flex-direction: column; align-items: center;
}
.hero__line {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0.24em;
}
.hero__line:nth-child(1) { color: var(--grafite-600); }
.hero__line:nth-child(2) { color: var(--grafite-400); }
.hero__line:nth-child(3) { color: var(--gelo-50); }
.hero__word { display: inline-flex; align-items: center; }
.hero__icon {
  height: 0.78em; width: 0.78em; border-radius: 0.18em;
  box-shadow: 0 0 40px rgba(198, 244, 50, 0.45);
}
.hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55;
  color: var(--grafite-400); max-width: 46ch; text-wrap: pretty;
}
.hero__cta-wrap { display: flex; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 12px; border: 1px solid var(--lima-500); background: rgba(198, 244, 50, 0.06);
  color: var(--gelo-50); font-weight: 500;
  box-shadow: 0 0 0 4px rgba(198, 244, 50, 0.06), 0 0 36px rgba(198, 244, 50, 0.28);
  transition: background .2s ease, box-shadow .2s ease;
}
.hero__cta:hover {
  background: rgba(198, 244, 50, 0.14); text-decoration: none;
  box-shadow: 0 0 0 4px rgba(198, 244, 50, 0.1), 0 0 52px rgba(198, 244, 50, 0.45);
}
.hero__promises {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 28px; margin-top: 8px;
}
.hero__promises li { display: flex; align-items: center; gap: 10px; color: var(--grafite-400); font-size: 15px; }
.hero__promises li::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--lima-500); flex: none;
}

/* Entrada da abertura: aparece com desfoque, palavra por palavra.
   O main.js adiciona .is-loaded no <body> e define o atraso de cada palavra. */
.reveal {
  opacity: 0; filter: blur(12px); transform: translateY(18px);
  transition: opacity .9s ease var(--d, 0s), filter .9s ease var(--d, 0s),
              transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
.hero__sub.reveal { --d: 0.7s; }
.hero__cta-wrap.reveal { --d: 0.85s; }
.hero__promises.reveal { --d: 1s; }
.is-loaded .reveal, .no-js .reveal { opacity: 1; filter: blur(0); transform: translateY(0); }

/* ---------- Folha clara que sobe ao rolar ---------- */
.sheet {
  --sheet-inset: 40px; --sheet-radius: 40px;
  position: relative; z-index: 2; margin: -96px auto 0;
  width: calc(100% - var(--sheet-inset) * 2);
  background: var(--gelo-50);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  box-shadow: 0 -30px 80px -20px rgba(124, 92, 255, 0.35);
}
@media (max-width: 767px) { .sheet { --sheet-inset: 8px; --sheet-radius: 24px; } }

/* ---------- Seções (estrutura comum) ---------- */
.section { scroll-margin-top: var(--header-h); padding: var(--section-y) 24px; }
.section__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: var(--section-gap);
}
.section__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em;
  color: var(--grafite-900); text-wrap: balance;
}
.section__sub { color: var(--grafite-500); font-size: 1.0625rem; max-width: 46ch; text-wrap: pretty; }
.section__sub--44 { max-width: 44ch; }
.section__sub--40 { max-width: 40ch; }
.section__sub--free { max-width: none; }

.card-title {
  font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--grafite-900);
}
.card-text { color: var(--grafite-500); text-wrap: pretty; }

/* ---------- Serviços ---------- */
.services {
  list-style: none; width: 100%; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.service {
  background: var(--branco); border: 1px solid var(--grafite-100); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service:hover {
  border-color: var(--roxo-200); transform: translateY(-2px);
  box-shadow: 0 16px 36px -18px rgba(124, 92, 255, 0.4);
}
.service__icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--roxo-50); color: var(--roxo-700);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Como funciona ---------- */
.steps {
  list-style: none; width: 100%; display: grid; gap: clamp(24px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--roxo-100); }
.step__num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.5rem;
  line-height: 1; letter-spacing: -0.02em; color: var(--roxo-500);
}
.btn-dark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 12px; background: var(--grafite-900); color: var(--gelo-50); font-weight: 500;
  transition: background .2s ease;
}
.btn-dark:hover { background: var(--grafite-700); text-decoration: none; }

/* ---------- Depoimentos ---------- */
.testimonials {
  width: 100%; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.testimonial {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--grafite-800) 0%, var(--grafite-900) 70%);
  border: 1px solid var(--grafite-700); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  box-shadow: 0 24px 48px -24px rgba(11, 18, 32, 0.5);
}
.testimonial::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.35), rgba(124, 92, 255, 0));
  pointer-events: none;
}
.testimonial blockquote {
  position: relative; font-size: 1.0625rem; line-height: 1.6; color: var(--grafite-100); text-wrap: pretty;
}
.testimonial figcaption { position: relative; display: flex; align-items: center; gap: 14px; }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 999px; background: var(--roxo-500); color: var(--gelo-50);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500;
}
.testimonial__who { display: flex; flex-direction: column; line-height: 1.35; }
.testimonial__name { font-weight: 500; color: var(--gelo-50); }
.testimonial__biz { color: var(--roxo-300); font-size: 0.875rem; }

/* ---------- Perguntas frequentes ---------- */
.section__inner--narrow { max-width: 820px; }
.faq { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: var(--branco); border: 1px solid var(--grafite-100); border-radius: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item.is-open { border-color: var(--roxo-200); box-shadow: 0 12px 32px -16px rgba(124, 92, 255, 0.35); }
.faq__q { margin: 0; }
.faq__btn {
  width: 100%; min-height: 64px; padding: 18px 22px; background: transparent; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.3;
  color: var(--grafite-900);
}
.faq__btn:hover { color: var(--roxo-700); }
.faq__icon {
  flex: none; width: 32px; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grafite-100); color: var(--grafite-900);
  transition: transform .2s ease, background .2s ease;
}
.faq__item.is-open .faq__icon { background: var(--roxo-500); color: var(--gelo-50); transform: rotate(45deg); }
.faq__a { padding: 0 72px 22px 22px; color: var(--grafite-500); text-wrap: pretty; }

/* ---------- Orçamento ---------- */
.section--quote { padding: var(--section-y) 16px 0; }
.quote {
  position: relative; overflow: hidden; max-width: 1248px; margin: 0 auto;
  background: var(--grafite-950); border-radius: 28px;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 72px);
}
.quote::before {
  content: ""; position: absolute; left: -10%; bottom: -50%; width: 80%; height: 120%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.4), rgba(124, 92, 255, 0));
  pointer-events: none;
}
.quote__grid {
  position: relative; display: grid; align-items: center; gap: clamp(32px, 6vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.quote__text { display: flex; flex-direction: column; gap: 20px; }
.quote__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--gelo-50); text-wrap: balance;
}
.quote__title .accent { color: var(--lima-500); }
.quote__sub { font-size: 1.125rem; line-height: 1.5; color: var(--grafite-400); max-width: 34ch; }

.form {
  background: var(--gelo-50); border-radius: 20px; padding: clamp(24px, 4vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 500; font-size: 0.9375rem; }
.field__optional { color: var(--grafite-500); font-weight: 400; }
.field__input {
  height: 48px; padding: 0 14px; border: 1px solid var(--grafite-300); border-radius: 10px;
  background: var(--branco); font-size: 16px; color: var(--grafite-900); outline: none;
}
.field__input--area { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field__input:focus { border-color: var(--roxo-500); box-shadow: 0 0 0 4px var(--roxo-100); outline: none; }
.choice { border: 0; display: flex; flex-direction: column; gap: 8px; }
.choice legend { font-weight: 500; font-size: 0.9375rem; margin-bottom: 8px; }
.choice__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--grafite-300); background: var(--branco); color: var(--grafite-900);
}
.pill[aria-pressed="true"] { border-color: var(--roxo-700); background: var(--roxo-50); color: var(--roxo-700); }
.form__feedback { padding: 12px 14px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.form__feedback.is-error { background: var(--erro-bg); color: var(--erro-texto); }
.form__feedback.is-ok { background: var(--roxo-50); color: var(--roxo-700); }
.form__submit {
  min-height: 54px; border: 0; border-radius: 12px; background: var(--lima-500); color: var(--grafite-900);
  font-weight: 500; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.form__submit:hover { background: var(--lima-700); }

/* ---------- Contato ---------- */
.contacts {
  list-style: none; width: 100%; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.contacts li { display: flex; }
.contact {
  flex: 1; background: var(--branco); border: 1px solid var(--grafite-100); border-radius: 20px; padding: 24px;
  display: flex; align-items: center; gap: 16px; color: var(--grafite-900);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact:hover {
  border-color: var(--roxo-200); text-decoration: none;
  box-shadow: 0 16px 36px -18px rgba(124, 92, 255, 0.4);
}
.contact__icon {
  flex: none; width: 48px; height: 48px; border-radius: 999px; background: var(--roxo-500); color: var(--gelo-50);
  display: flex; align-items: center; justify-content: center;
}
.contact__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.contact__label { color: var(--grafite-500); font-size: 0.875rem; }
.contact__value { font-weight: 500; font-size: 1.0625rem; overflow-wrap: anywhere; }

/* ---------- Rodapé ---------- */
.footer { padding: 0 24px 32px; }
.footer__inner { max-width: 1200px; margin: 0 auto; padding-top: 56px; border-top: 1px solid var(--grafite-100); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer__logo { height: 26px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--grafite-500); max-width: 32ch; }
.footer__heading { font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--grafite-900); margin-bottom: 14px; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__list a, .footer__place { color: var(--grafite-500); }
.footer__list a:hover { color: var(--roxo-700); }
.footer__list--icons a, .footer__place { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.footer__list--icons .icon { color: var(--roxo-700); }
.footer__bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--grafite-100);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  color: var(--grafite-500); font-size: 0.875rem;
}
.footer__list .link-btn { font-size: 1rem; text-decoration: none; }
.footer__list .link-btn:hover { color: var(--roxo-700); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.link-btn {
  border: 0; background: transparent; padding: 0; color: var(--grafite-500);
  font-size: 0.875rem; cursor: pointer; text-decoration: underline;
}

/* ---------- Aviso de cookies ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 440px;
  background: var(--grafite-900); color: var(--grafite-100);
  border: 1px solid var(--grafite-700); border-radius: 20px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 48px -12px rgba(7, 11, 20, 0.6);
}
.consent__title { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; color: var(--gelo-50); }
.consent__text { font-size: 0.9375rem; line-height: 1.55; color: var(--grafite-300); }
.consent__text a { color: var(--roxo-400); }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__btn {
  flex: 1; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-weight: 500; font-size: 0.9375rem; cursor: pointer;
}
.consent__btn--accept { border: 0; background: var(--lima-500); color: var(--grafite-900); }
.consent__btn--accept:hover { background: var(--lima-700); }
.consent__btn--decline { border: 1px solid rgba(245, 247, 250, 0.24); background: transparent; color: var(--gelo-50); }
.consent__btn--decline:hover { border-color: var(--gelo-50); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px;
  border-radius: 999px; background: var(--lima-500); color: var(--grafite-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 32px rgba(198, 244, 50, 0.35), 0 6px 20px rgba(11, 18, 32, 0.3);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
/* Ao passar o mouse: acende (mais brilho e mais luz em volta), sem escurecer */
.wa-float:hover {
  transform: scale(1.06);
  filter: brightness(1.08) saturate(1.1);
  box-shadow: 0 0 48px rgba(198, 244, 50, 0.65), 0 8px 24px rgba(11, 18, 32, 0.35);
}
