/* ============================================================
   knup — marketing & tecnologia
   Sistema visual derivado do Manual de Uso da Marca (2024)
   Paleta: #171717 · #1b0055 · #df000b · #ffe3ab · #ededed
   Tipografia de texto: Creato Display (SIL OFL) — conforme manual
   Tipografia de display: Bodoni Moda (SIL OFL) — substituta de
   Sugar Magic, que é licenciada apenas para uso pessoal.
   ============================================================ */

/* ---------- 1. Fontes ---------- */

@font-face {
  font-family: "Creato Display";
  src: url("../fonts/CreatoDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Creato Display";
  src: url("../fonts/CreatoDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Creato Display";
  src: url("../fonts/CreatoDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/BodoniModa-var.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/BodoniModa-Italic-var.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */

:root {
  /* cores da marca — não substituir (manual, p.12) */
  --ink: #171717;
  --indigo: #1b0055;
  --red: #df000b;
  --cream: #ffe3ab;
  --paper: #ededed;

  /* superfícies derivadas */
  --surface: #1e1e1e;
  --surface-2: #242424;
  --line: rgba(237, 237, 237, 0.14);
  --line-soft: rgba(237, 237, 237, 0.08);
  --muted: rgba(237, 237, 237, 0.62);
  --muted-2: rgba(237, 237, 237, 0.42);

  --display: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Creato Display", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* escala fluida */
  --t-micro: 0.6875rem;
  --t-sm: 0.875rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --t-h2: clamp(2.5rem, 1.6rem + 4.2vw, 6rem);
  --t-h1: clamp(3.4rem, 1.2rem + 9.4vw, 10rem);

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --bay: clamp(5rem, 10vw, 10rem);
  --wrap: 1360px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 3. Reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cream);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Atmosfera: grão + gradiente de marca ---------- */

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* ---------- 5. Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--bay); }
.section + .section { padding-top: 0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* cabeçalho de seção: índice + rótulo + fio */
.sechead {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 2.5rem;
}
.sechead__idx {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.06em;
  flex: none;
}
.sechead__label {
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  flex: none;
}
.sechead__line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) 0.1s;
}
.is-in .sechead__line { transform: scaleX(1); }

/* ---------- 6. Header / navegação ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(23, 23, 23, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 5rem;
}

.nav__brand {
  display: block;
  flex: none;
  color: var(--paper);
  transition: color 0.3s var(--ease);
}
.nav__brand svg { width: clamp(84px, 9vw, 108px); height: auto; }
.nav__brand:hover { color: var(--cream); }

.nav__menu {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  margin-left: auto;
  align-items: center;
}
.nav__link {
  position: relative;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { flex: none; }
.nav__menu .nav__mobile-cta { display: none; }

.nav__toggle {
  display: none;
  flex: none;
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--paper);
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { bottom: 16px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -5px) rotate(-45deg); }

/* ---------- 7. Botões ---------- */

.btn {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--ink); }
.btn--ghost::before { background: var(--paper); }

.btn--sm { padding: 0.7em 1.25em; font-size: 0.8125rem; }
.btn--lg { padding: 1.1em 2em; font-size: 1rem; }

.btn__arrow {
  flex: none;
  width: 0.85em;
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* ---------- 8. Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 7rem;
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
  overflow: hidden;
}

/* véu que garante contraste do texto sobre a ilustração de gradiente */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, var(--ink) 14%, rgba(23, 23, 23, 0.86) 34%, rgba(23, 23, 23, 0.34) 58%, transparent 78%),
    linear-gradient(0deg, var(--ink) 2%, transparent 26%);
}

/* Ilustração de gradiente da marca, recriada em CSS */
.hero__orb {
  position: absolute;
  top: 50%;
  right: -14vw;
  width: min(78vw, 900px);
  aspect-ratio: 1;
  transform: translateY(-56%);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 227, 171, 0.95) 0%, rgba(255, 227, 171, 0) 42%),
    radial-gradient(circle at 68% 34%, rgba(223, 0, 11, 0.98) 0%, rgba(223, 0, 11, 0.55) 40%, rgba(223, 0, 11, 0) 68%),
    radial-gradient(circle at 26% 62%, rgba(27, 0, 85, 1) 0%, rgba(27, 0, 85, 0.5) 45%, rgba(27, 0, 85, 0) 72%),
    radial-gradient(circle at 62% 82%, rgba(23, 23, 23, 1) 0%, rgba(23, 23, 23, 0) 60%);
  filter: blur(28px) saturate(115%);
  opacity: 0;
  animation: orb-in 2.4s var(--ease) 0.15s forwards;
}
.hero__orb::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 30%, rgba(255, 227, 171, 0.5), transparent 55%);
  mix-blend-mode: screen;
  filter: blur(40px);
}
@keyframes orb-in {
  from { opacity: 0; transform: translateY(-46%) scale(0.86); }
  to { opacity: 0.9; transform: translateY(-56%) scale(1); }
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.hero__kicker::before {
  content: "";
  width: clamp(28px, 5vw, 64px);
  height: 1px;
  background: var(--red);
}

.hero__title {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "wght" 500;
  font-size: var(--t-h1);
  line-height: 0.82;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "wght" 500;
  color: var(--cream);
}
.hero__title .dot { color: var(--red); }

.hero__deck {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 34ch;
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}
.hero__deck strong { color: var(--paper); font-weight: 500; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.hero__meta {
  /* o recuo negativo faz o texto da primeira célula alinhar com a margem da
     página, mantendo o mesmo respiro em todas as divisórias */
  --meta-pad: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-inline: calc(var(--meta-pad) * -1);
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.hero__meta li {
  background: var(--ink);
  padding: 1.25rem var(--meta-pad);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero__meta b {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "wght" 500;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--cream);
  font-weight: 500;
}
.hero__meta span {
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 5vw, 4rem);
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--muted-2), transparent);
  animation: drop 2.2s var(--ease-io) infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 9. Serviços ---------- */

.svc { border-top: 1px solid var(--line); }

.svc__item { border-bottom: 1px solid var(--line); }

.svc__head {
  width: 100%;
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3.2vw, 2.5rem) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.svc__head::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(223, 0, 11, 0.16), rgba(27, 0, 85, 0.16) 60%, transparent);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.svc__head:hover::before,
.svc__item.is-open .svc__head::before { opacity: 1; }

.svc__num {
  font-family: var(--display);
  font-variation-settings: "opsz" 24, "wght" 500;
  font-size: 0.95rem;
  color: var(--red);
  letter-spacing: 0.08em;
}

.svc__name {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "wght" 500;
  font-size: var(--t-h2);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
  font-weight: 500;
  transition: color 0.4s var(--ease), transform 0.6s var(--ease);
}
.svc__head:hover .svc__name,
.svc__item.is-open .svc__name { color: var(--cream); }
.svc__head:hover .svc__name { transform: translateX(0.5rem); }

.svc__sign {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.5s var(--ease);
}
.svc__sign::before,
.svc__sign::after {
  content: "";
  position: absolute;
  background: var(--paper);
  transition: transform 0.45s var(--ease), background 0.4s var(--ease);
}
.svc__sign::before { width: 12px; height: 1.5px; }
.svc__sign::after { width: 1.5px; height: 12px; }
.svc__item.is-open .svc__sign {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(180deg);
}
.svc__item.is-open .svc__sign::after { transform: scaleY(0); }
.svc__head:hover .svc__sign { border-color: var(--cream); }

.svc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.svc__item.is-open .svc__panel { grid-template-rows: 1fr; }
.svc__panel > div { overflow: hidden; }

.svc__body {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(0.75rem, 3vw, 2rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.svc__body > div:last-child {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}
.svc__text {
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--t-lead);
  line-height: 1.5;
  text-wrap: pretty;
}
.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-content: start;
}
.svc__tags li {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(237, 237, 237, 0.02);
}

/* ---------- 10. Processo ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.step {
  background: var(--ink);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease);
}
.step::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.step:hover { background: var(--surface); }
.step:hover::after { transform: scaleX(1); }

.step__num {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "wght" 400;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 237, 237, 0.32);
  margin-bottom: 1.5rem;
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease);
}
.step:hover .step__num {
  color: var(--cream);
  -webkit-text-stroke-color: transparent;
}
.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.step p { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }

/* ---------- 11. Diferenciais ---------- */

.edge {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.edge__item {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.edge__mark {
  width: 1.5rem;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.edge__item h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "wght" 500;
  font-size: var(--t-h3);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--paper);
  text-wrap: balance;
}
.edge__item p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

/* ---------- 12. Sobre ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about__lead {
  font-family: var(--display);
  font-variation-settings: "opsz" 48, "wght" 400;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper);
  text-wrap: pretty;
}
.about__lead em { font-style: italic; color: var(--cream); }
.about__body { display: grid; gap: 1.25rem; }
.about__body p { color: var(--muted); text-wrap: pretty; }

.about__facts {
  margin-top: 2.5rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.about__facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.875rem;
}
.about__facts dt { color: var(--muted-2); letter-spacing: 0.04em; flex: none; }
.about__facts dd { margin: 0; color: var(--paper); font-weight: 500; text-align: right; }

/* ---------- 13. FAQ ---------- */

.faq { border-top: 1px solid var(--line); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 2.5rem 1.4rem 0;
  position: relative;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  font-weight: 500;
  color: var(--paper);
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cream); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--red);
  border-bottom: 1.5px solid var(--red);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p {
  color: var(--muted);
  padding-bottom: 1.5rem;
  max-width: 66ch;
  text-wrap: pretty;
}

/* ---------- 14. Contato ---------- */

.contact.section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink), #131313);
  /* anula o `.section + .section { padding-top: 0 }`: aqui o fio de topo
     precisa de ar antes do título */
  padding-top: var(--bay);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  position: relative;
  z-index: 2;
  align-items: start;
}
.contact__title {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "wght" 500;
  font-size: clamp(2.75rem, 1rem + 7vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--paper);
}
.contact__title em { font-style: italic; color: var(--cream); }
.contact__note {
  margin-top: 1.5rem;
  color: var(--muted);
  max-width: 38ch;
  text-wrap: pretty;
}

.channels { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.4s var(--ease);
}
.channel:hover { padding-left: 0.75rem; }
.channel__ic {
  flex: none;
  width: 1.15rem;
  color: var(--red);
  transition: color 0.3s var(--ease);
}
.channel:hover .channel__ic { color: var(--cream); }
.channel__k {
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  width: 7.75rem;
  flex: none;
}
.channel__v { font-weight: 500; color: var(--paper); word-break: break-word; }

/* formulário */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(237, 237, 237, 0.03);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: var(--paper);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  appearance: none;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23ededed' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field select option { background: var(--ink); color: var(--paper); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cream);
  background: rgba(237, 237, 237, 0.05);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: var(--red); }
.field__err {
  font-size: 0.75rem;
  color: var(--red);
  min-height: 0;
  display: none;
}
.field[data-invalid="true"] .field__err { display: block; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__foot { display: grid; gap: 0.9rem; margin-top: 0.4rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.form__legal { font-size: 0.75rem; line-height: 1.5; color: var(--muted-2); }
.form__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.form__legal a:hover { color: var(--cream); }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- 15. Rodapé ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  background: var(--ink);
  position: relative;
  z-index: 2;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer__brand svg { width: clamp(150px, 18vw, 210px); color: var(--paper); }
.footer__slogan {
  margin-top: 1.25rem;
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: 1.25rem;
  color: var(--cream);
}
.footer__col h4 {
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.footer__col li + li { margin-top: 0.6rem; }
.footer__col a {
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
  display: inline-block;
}
.footer__col a:hover { color: var(--cream); padding-left: 0.3rem; }

.footer__bar {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted-2);
  line-height: 1.6;
}
.footer__bar a { color: var(--muted-2); }
.footer__bar a:hover { color: var(--cream); }
.footer__legal { max-width: 62ch; }

/* botão flutuante whatsapp */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 80;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.wa-float.is-on { transform: translateY(0); }
.wa-float:hover { background: var(--red); color: #fff; }
.wa-float svg { width: 1.5rem; }

/* ---------- 16. Páginas de texto (política, 404) ---------- */

.prose {
  max-width: 72ch;
  padding-top: 9rem;
}
.prose h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "wght" 500;
  font-size: clamp(2.25rem, 1rem + 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 1rem;
}
.prose h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "wght" 500;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.prose p, .prose li { color: var(--muted); text-wrap: pretty; }
.prose p + p { margin-top: 1rem; }
.prose ul { list-style: none; margin-top: 1rem; display: grid; gap: 0.6rem; }
.prose ul li { position: relative; padding-left: 1.25rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--red);
}
.prose a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.prose__meta { font-size: 0.8125rem; color: var(--muted-2); margin-bottom: 3rem; }

.err {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.err__code {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "wght" 500;
  font-size: clamp(6rem, 22vw, 18rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
}

/* ---------- 17. Revelações ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* O hero entra por CSS puro: não depende de JavaScript nem de scroll. */
.hero .reveal {
  animation: rise 1.1s var(--ease) var(--d, 0ms) forwards;
  transition: none;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Sem JavaScript, nada fica escondido. */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .sechead__line { transform: scaleX(1); }
}

/* ---------- 18. Responsivo ---------- */

@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .svc__body > div:last-child { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 860px) {
  .nav__menu {
    position: fixed;
    inset: 5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(23, 23, 23, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-block: 1px solid var(--line-soft);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.3s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link {
    font-family: var(--display);
    font-variation-settings: "opsz" 36, "wght" 500;
    font-size: 1.6rem;
    color: var(--paper);
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__link::after { display: none; }
  .nav__cta { display: none; }
  .nav__menu .nav__mobile-cta { display: inline-flex; justify-content: center; margin-top: 1.25rem; }
  .nav__toggle { display: block; }
  body.menu-open { overflow: hidden; }
  .hero__scroll { display: none; }
  .hero { min-height: auto; padding-top: 9rem; padding-bottom: 4rem; }
  .hero__orb { right: -34vw; width: 118vw; }
  .hero__orb { animation-name: orb-in-sm; }
  @keyframes orb-in-sm {
    from { opacity: 0; transform: translateY(-46%) scale(0.9); }
    to { opacity: 0.6; transform: translateY(-56%) scale(1); }
  }
  .hero::before {
    background:
      linear-gradient(105deg, var(--ink) 6%, rgba(23, 23, 23, 0.9) 42%, rgba(23, 23, 23, 0.55) 72%, rgba(23, 23, 23, 0.2) 100%),
      linear-gradient(0deg, var(--ink) 2%, transparent 22%);
  }
  .svc__head { grid-template-columns: 2.5rem 1fr auto; }
  .svc__body { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .channel { flex-wrap: wrap; gap: 0.35rem 0.75rem; }
  .channel__k { width: auto; }
  .channel__v { width: 100%; padding-left: 2.15rem; }
}

/* ---------- 19. Preferências ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__orb { opacity: 0.9; transform: translateY(-56%); }
  .sechead__line { transform: scaleX(1); }
}

@media print {
  body::after, .hero__orb, .wa-float, .site-header { display: none; }
  body { background: #fff; color: #000; }
}
