/* ==========================================================================
   Unique Performance: Marketing Médico
   Folha única. Ordem: tokens · reset · base · utilitários · componentes ·
   responsivo · acessibilidade.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Cor: paleta da marca */
  --navy-900: #071320;
  --navy: #0b1b2b;
  --navy-700: #102437;
  --navy-500: #1b3550;
  --gold: #a9853f;
  --gold-light: #c3a05c;
  --gold-soft: rgba(169, 133, 63, 0.14);
  /* Ouro escurecido para TEXTO sobre fundo claro. O --gold puro dá 3.13:1
     sobre o off-white e reprova no AA; este dá 4.97:1. */
  --gold-ink: #856428;
  --off: #f7f4ef;
  --off-2: #efeae1;
  --line: #e3ded4;
  --ink: #1a1d21;
  --muted: #5f666f;

  /* Cor: texto sobre fundo escuro */
  --on-dark: #ffffff;
  --on-dark-2: #a6b7c7;
  --on-dark-3: #7d91a5;
  --line-dark: rgba(169, 133, 63, 0.24);

  /* Tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-eyebrow: 0.688rem;
  --fs-micro: 0.75rem;
  --fs-small: 0.844rem;
  --fs-body: clamp(0.938rem, 0.9rem + 0.2vw, 1.031rem);
  --fs-lede: clamp(1rem, 0.94rem + 0.4vw, 1.188rem);
  --fs-h3: clamp(1.063rem, 1rem + 0.3vw, 1.188rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2.2vw, 2.875rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem);

  /* Espaçamento */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.75rem, 8vw, 7.5rem);

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 860px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --nav-h: 68px;
  --radius: 3px;
  --radius-sm: 2px;

  /* Movimento */
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --dur: 0.34s;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:target {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

/* --------------------------------------------------------------------------
   3. Base tipográfica
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 120, "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-variation-settings: normal;
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. Utilitários
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--light {
  background: var(--off);
  color: var(--ink);
}

.section--light-2 {
  background: var(--off-2);
  color: var(--ink);
}

.section--dark {
  background: var(--navy);
  color: var(--on-dark);
}

.section--darker {
  background: var(--navy-900);
  color: var(--on-dark);
}

.section--gold {
  background: var(--gold-light);
  color: var(--navy);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--sp-4);
}

.section--dark .eyebrow,
.section--darker .eyebrow {
  color: var(--gold-light);
}

.rule {
  width: 28px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin-bottom: var(--sp-5);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}

.section--dark .lede,
.section--darker .lede {
  color: var(--on-dark-2);
}

.section-head {
  max-width: 40ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .lede {
  margin-top: var(--sp-4);
}

.skip {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: var(--sp-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    transform 0.12s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn--ghost {
  border-color: rgba(169, 133, 63, 0.55);
  color: var(--gold-light);
}

.btn--ghost:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}

.btn--dark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-dark);
}

.btn--dark:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
}

.btn--outline-ink {
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline-ink:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-dark);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* --------------------------------------------------------------------------
   6. Navbar + menu hambúrguer
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}

.nav.is-stuck {
  background: rgba(7, 19, 32, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-right: auto;
  color: var(--on-dark);
}

.nav__brand img {
  width: 38px;
  height: 38px;
}

.nav__brand-text {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.35;
}

.nav__brand-text span {
  display: block;
  color: var(--gold-light);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav__link {
  position: relative;
  font-size: var(--fs-small);
  color: var(--on-dark-2);
  padding-block: var(--sp-2);
  transition: color var(--dur) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--on-dark);
}

.nav__link.is-active::after,
.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  padding: 0.6rem 1.15rem;
  min-height: 42px;
}

/* Botão hambúrguer */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
}

.burger__box {
  position: relative;
  width: 24px;
  height: 12px;
}

.burger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity 0.2s var(--ease),
    width var(--dur) var(--ease);
}

.burger__line:nth-child(1) {
  top: 0;
}

.burger__line:nth-child(2) {
  bottom: 0;
  width: 70%;
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  width: 100%;
  transform: translateY(-5px) rotate(-45deg);
}

/* Overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy-900);
  padding: calc(var(--nav-h) + var(--sp-6)) var(--gutter) var(--sp-7);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  /* O fundo solidifica rápido para a página não vazar por trás; a entrada
     escalonada dos links é que dá o ritmo. */
  transition: opacity 0.18s var(--ease), transform 0.28s var(--ease);
  overflow-y: auto;
}

/* .menu tem display:flex, que sobrescreveria o [hidden] do agente do usuário */
.menu[hidden] {
  display: none;
}

.menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-7);
}

.menu__link {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 7vw, 2.125rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(10px);
}

.menu.is-open .menu__link {
  animation: menu-in 0.4s var(--ease) forwards;
}

.menu.is-open .menu__link:nth-child(1) { animation-delay: 0.04s; }
.menu.is-open .menu__link:nth-child(2) { animation-delay: 0.08s; }
.menu.is-open .menu__link:nth-child(3) { animation-delay: 0.12s; }
.menu.is-open .menu__link:nth-child(4) { animation-delay: 0.16s; }
.menu.is-open .menu__link:nth-child(5) { animation-delay: 0.2s; }

@keyframes menu-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.menu__link span {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.menu__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--on-dark-3);
}

.menu__contact a:hover {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -12%;
  width: min(760px, 85vw);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(169, 133, 63, 0.16) 0%,
    rgba(169, 133, 63, 0) 68%
  );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__h1 .thin {
  color: var(--on-dark-2);
}

.hero__h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero__sub {
  margin-top: var(--sp-5);
  max-width: 46ch;
  font-size: var(--fs-lede);
  color: var(--on-dark-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  color: var(--on-dark-3);
}

.hero__note::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55em; /* acompanha a primeira linha, não o centro do bloco */
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* --- Assinatura: a agenda --- */
.agenda {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(168deg, var(--navy-700) 0%, var(--navy) 100%);
  padding: clamp(1.125rem, 2.4vw, 1.75rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.agenda__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.agenda__title {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.agenda__count {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.agenda__count b {
  color: var(--gold-light);
  font-weight: 500;
}

.agenda__grid {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: var(--sp-4);
}

.agenda__day,
.agenda__time {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--on-dark-3);
  display: flex;
  align-items: center;
}

.agenda__day {
  justify-content: center;
  padding-bottom: var(--sp-1);
  text-transform: uppercase;
}

.agenda__time {
  padding-right: var(--sp-3);
  font-variant-numeric: tabular-nums;
}

.agenda__slot {
  height: clamp(24px, 3.4vw, 32px);
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  background: transparent;
  transition: background-color 0.45s var(--ease),
    border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

/* Ocupado por indicação: o que a clínica já tinha, em tom neutro */
.agenda__slot.is-ref {
  border-style: solid;
  border-color: rgba(166, 183, 199, 0.22);
  background: rgba(166, 183, 199, 0.09);
  box-shadow: inset 2px 0 0 rgba(166, 183, 199, 0.65);
}

/* Ocupado por captação estruturada: o que a Unique acrescenta, em ouro */
.agenda__slot.is-new {
  border-style: solid;
  border-color: rgba(195, 160, 92, 0.62);
  background: rgba(186, 148, 72, 0.42);
  box-shadow: inset 2px 0 0 var(--gold-light);
}

.agenda__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.agenda__key {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.agenda__key::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: none;
}

.agenda__key--ref::before {
  background: rgba(166, 183, 199, 0.14);
  box-shadow: inset 2px 0 0 rgba(166, 183, 199, 0.65);
}

.agenda__key--new::before {
  background: rgba(186, 148, 72, 0.5);
  box-shadow: inset 2px 0 0 var(--gold-light);
}

/* --------------------------------------------------------------------------
   8. Barra de prova social
   -------------------------------------------------------------------------- */
.proof {
  background: var(--navy);
  border-block: 1px solid var(--line-dark);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--on-dark);
}

.proof__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  text-align: center;
}

.proof__num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}

.proof__label {
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

/* --------------------------------------------------------------------------
   9. Dores
   -------------------------------------------------------------------------- */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.pain {
  background: var(--off);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.pain__n {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-ink);
  display: block;
  margin-bottom: var(--sp-4);
}

.pain h3 {
  margin-bottom: var(--sp-3);
}

.pain p {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.7;
}

.pains-note {
  margin-top: var(--sp-6);
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 62ch;
}

.pains-note strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   10. Solução
   -------------------------------------------------------------------------- */
/* Palco do card: centralizado, com o selo posicionado em relação a ele */
.solution__stage {
  --seal: clamp(150px, 19vw, 240px);
  position: relative;
  max-width: 780px;
  margin-inline: auto;
}

.solution__card {
  position: relative;
  z-index: 2; /* cobre o selo */
  background: var(--off);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.solution__card h2 {
  max-width: 18ch;
}

.solution__card p {
  margin-top: var(--sp-5);
  color: var(--muted);
  max-width: 54ch;
}

.solution__quote {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--off-2);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--ink);
}

/* Sai pelo canto superior direito; a metade de baixo fica escondida pelo card.
   O recorte circular existe por um motivo concreto: o selo gira, e a caixa de
   um quadrado rotacionado cresce ate 1.41x, o que fazia os cantos furarem a
   viewport. A arte e um circulo inscrito, entao recortar nao perde pixel
   visivel e tira o giro do calculo de largura do documento. */
.solution__seal {
  position: absolute;
  z-index: 1;
  top: calc(var(--seal) * -0.36);
  right: calc(var(--seal) * -0.16);
  width: var(--seal);
  height: var(--seal);
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
}

.solution__seal img {
  width: 100%;
  height: 100%;
  opacity: 0.9;
  animation: spin 44s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   11. Benefícios
   -------------------------------------------------------------------------- */
/* 6 itens: 3 × 2 no desktop, nunca 4 + 2 órfãos */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

.benefit {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.benefit:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(11, 27, 43, 0.08);
}

.benefit__icon {
  width: 30px;
  height: 30px;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}

.benefit h3 {
  margin-bottom: var(--sp-2);
}

.benefit p {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   12. Método (sequência real → numeração se justifica)
   -------------------------------------------------------------------------- */
.method {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-dark);
}

.step__n {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  position: absolute;
  top: var(--sp-4);
  left: 0;
}

.step h3 {
  color: var(--on-dark);
  margin-bottom: var(--sp-3);
  max-width: 20ch;
}

.step p {
  font-size: var(--fs-small);
  color: var(--on-dark-2);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   13. Planos
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--on-dark);
  border: 1px solid rgba(169, 133, 63, 0.32);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  box-shadow: 0 16px 46px rgba(11, 27, 43, 0.14);
}

.plan--featured {
  background: linear-gradient(168deg, var(--navy-700) 0%, var(--navy) 100%);
  border-color: rgba(169, 133, 63, 0.7);
}

.plan__tag {
  position: absolute;
}

.plan__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--on-dark);
  margin-bottom: var(--sp-2);
}

.plan--featured .plan__name {
  color: var(--gold-light);
}

.plan__sub {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--on-dark-2);
  margin-bottom: var(--sp-5);
  min-height: 3.2em;
}

.plan__k {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--sp-3);
}

.plan__list {
  margin-bottom: var(--sp-5);
  flex: 1;
}

.plan__list li {
  position: relative;
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-2);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--on-dark-2);
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

.plan__list b {
  color: var(--on-dark);
  font-weight: 600;
}

.plan__reveal {
  width: 100%;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(169, 133, 63, 0.55);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--gold-light);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.plan__reveal:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}

.plan--featured .plan__reveal {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}

.plan--featured .plan__reveal:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.plan__reveal[aria-expanded="true"] {
  display: none;
}

.plan__inv {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.plan__inv.is-open {
  grid-template-rows: 1fr;
}

.plan__inv > div {
  overflow: hidden;
}

.plan__inv-inner {
  border-top: 1px solid var(--line-dark);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
}

.plan__row + .plan__row {
  margin-top: var(--sp-5);
}

.plan__lab {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--sp-1);
}

.plan__was {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: #6e8397;
  text-decoration: line-through;
}

.plan__now {
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.plan__now small {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
}

.plan__cycle {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: var(--fs-micro);
  line-height: 1.65;
  color: var(--on-dark-3);
}

.plan__cta {
  margin-top: var(--sp-5);
}

.plans-note {
  margin-top: var(--sp-6);
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--muted);
  max-width: 78ch;
}

.plans-note strong {
  color: var(--ink);
}

/* Tabela comparativa */
.compare {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.compare__table th,
.compare__table td {
  text-align: left;
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  vertical-align: top;
}

.compare__table th {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: #c9c3b6;
}

.compare__table th:last-child {
  color: var(--gold-ink);
}

.compare__table td:first-child {
  width: 26%;
  color: var(--ink);
  font-weight: 500;
}

.compare__table td:last-child {
  background: var(--gold-soft);
}

.compare__table .no {
  color: #b9b4aa;
}

/* Versão mobile da comparação */
.compare__cards {
  display: none;
}

.compare__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  background: #fff;
}

.compare__card + .compare__card {
  margin-top: var(--sp-4);
}

.compare__card h4 {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.compare__pair {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}

.compare__pair dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare__pair dd {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   14. Depoimentos (facade de vídeo)
   -------------------------------------------------------------------------- */
.videos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-4);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.video {
  position: relative;
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--navy-700);
  cursor: pointer;
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 32, 0.05) 40%,
    rgba(7, 19, 32, 0.6) 100%
  );
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(7, 19, 32, 0.35);
  backdrop-filter: blur(3px);
  color: #fff;
  transition: transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.video:hover .video__play {
  transform: scale(1.08);
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}

.video__play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

/* Lightbox: o depoimento cresce para ocupar a tela */
.lightbox {
  /* Altura do vídeo. svh acompanha a barra do navegador no celular. */
  --lb-h: min(76svh, 880px);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vh, 1.25rem);
  padding: calc(var(--sp-8) + env(safe-area-inset-top, 0px)) var(--gutter)
    calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 19, 32, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Largura derivada da altura para o retrato 9:16 nunca estourar a tela */
.lightbox__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(
    calc(var(--lb-h) * 0.5625),
    calc(100vw - 2 * var(--gutter))
  );
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: scale(0.97);
  transition: transform 0.24s var(--ease);
}

.lightbox.is-open .lightbox__frame {
  transform: none;
}

.lightbox__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__close {
  position: absolute;
  top: max(var(--sp-4), env(safe-area-inset-top, 0px));
  right: var(--gutter);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(16, 36, 55, 0.85);
  color: var(--on-dark);
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lightbox__close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.lightbox__nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--on-dark-2);
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lightbox__nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}

.lightbox__nav svg {
  width: 18px;
  height: 18px;
}

.lightbox__count {
  min-width: 6ch;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  color: var(--on-dark-3);
  font-variant-numeric: tabular-nums;
}

.videos-hint {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

/* --------------------------------------------------------------------------
   15. Bastidores
   -------------------------------------------------------------------------- */
.behind {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: var(--navy-900);
}

.behind img {
  width: 100%;
  height: clamp(200px, 26vw, 340px);
  object-fit: cover;
  filter: saturate(0.9);
  transition: filter var(--dur) var(--ease), transform 0.5s var(--ease);
}

.behind img:hover {
  filter: saturate(1.05);
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--line);
}

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

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--gold-ink);
}

.faq__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--gold);
  transition: transform var(--dur) var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a {
  padding-bottom: var(--sp-5);
  max-width: 68ch;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--muted);
}

.faq__a p + p {
  margin-top: var(--sp-3);
}

/* --------------------------------------------------------------------------
   17. CTV final
   -------------------------------------------------------------------------- */
.ctv {
  text-align: center;
  max-width: 46ch;
  margin-inline: auto;
}

.ctv h2 {
  color: var(--navy);
}

.ctv p {
  margin-top: var(--sp-4);
  color: rgba(11, 27, 43, 0.72);
}

.ctv .btn {
  margin-top: var(--sp-6);
}

.ctv__micro {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 27, 43, 0.78);
}

/* --------------------------------------------------------------------------
   18. Wizard de diagnóstico
   -------------------------------------------------------------------------- */
.wizard {
  max-width: 720px;
  margin-inline: auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(168deg, var(--navy-700) 0%, var(--navy) 100%);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.wizard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.wizard__top b {
  color: var(--gold-light);
  font-weight: 500;
}

.wizard__track {
  height: 2px;
  background: rgba(255, 255, 255, 0.09);
  margin-block: var(--sp-3) var(--sp-6);
  overflow: hidden;
}

.wizard__bar {
  height: 100%;
  width: 20%;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}

.wizard__step {
  display: none;
}

.wizard__step.is-active {
  display: block;
  animation: step-in 0.32s var(--ease);
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.wizard__step h3 {
  color: var(--on-dark);
  font-size: 1.25rem;
  margin-bottom: var(--sp-5);
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.field--wide {
  grid-column: 1 / -1;
}

.field label,
.fieldset__legend {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: var(--sp-2);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(7, 19, 32, 0.5);
  color: var(--on-dark);
  font-size: var(--fs-small);
  transition: border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.field input::placeholder {
  color: #5c7185;
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(7, 19, 32, 0.75);
}

.field input[aria-invalid="true"] {
  border-color: #d97e6a;
}

.field__error {
  display: none;
  margin-top: var(--sp-2);
  font-size: var(--fs-micro);
  color: #e6a08f;
}

.field__error.is-shown {
  display: block;
}

fieldset {
  border: 0;
}

fieldset + fieldset {
  margin-top: var(--sp-6);
}

.options {
  display: grid;
  gap: var(--sp-2);
}

.options--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option {
  position: relative;
  display: block;
}

.option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option__box {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(7, 19, 32, 0.4);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--on-dark-2);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.option__box::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.option__box:hover {
  border-color: rgba(169, 133, 63, 0.5);
  color: var(--on-dark);
}

.option input:checked + .option__box {
  border-color: var(--gold);
  background: rgba(169, 133, 63, 0.16);
  color: var(--on-dark);
}

.option input:checked + .option__box::before {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 3.5px var(--gold);
}

.option input:focus-visible + .option__box {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.wizard__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard__nav .btn--primary {
  margin-left: auto;
}

.wizard__back {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  padding: var(--sp-2);
  transition: color var(--dur) var(--ease);
}

.wizard__back:hover {
  color: var(--gold-light);
}

.wizard__back[hidden] {
  display: none;
}

/* Revisão */
.review {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  background: rgba(7, 19, 32, 0.4);
  padding: var(--sp-5);
}

.review__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  font-size: var(--fs-small);
}

.review__row + .review__row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.review__row dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  padding-top: 3px;
}

.review__row dd {
  color: var(--on-dark);
}

.wizard__consent {
  margin-top: var(--sp-5);
  font-size: var(--fs-micro);
  line-height: 1.7;
  color: var(--on-dark-3);
}

.wizard__consent a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: var(--on-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--sp-6);
  border-top: 1px solid var(--line-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.footer__brand img {
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-4);
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--on-dark-2);
  max-width: 24ch;
}

.footer__k {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--sp-4);
}

.footer__nap {
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--on-dark-2);
  font-style: normal;
}

.footer__nap a:hover {
  color: var(--gold-light);
}

.footer__nap p + p {
  margin-top: var(--sp-3);
}

.footer__links li + li {
  margin-top: var(--sp-2);
}

.footer__links a {
  font-size: var(--fs-small);
  color: var(--on-dark-2);
  transition: color var(--dur) var(--ease);
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--on-dark-2);
  transition: border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.footer__social a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-900);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--on-dark-3);
}

/* --------------------------------------------------------------------------
   20. Barra fixa de CTA no mobile
   -------------------------------------------------------------------------- */
.mobilebar {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--gutter)
    calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 19, 32, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-dark);
  justify-content: center;
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease);
}

.mobilebar.is-shown {
  transform: none;
}

.mobilebar .btn {
  flex: 1 1 auto;
  max-width: 420px;
  min-height: 46px;
  padding-inline: var(--sp-3);
}

.mobilebar .btn--ghost {
  flex: 0 0 auto;
  width: 52px;
}

/* --------------------------------------------------------------------------
   21. Reveals no scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }
.reveal[data-delay="4"] { transition-delay: 0.28s; }
.reveal[data-delay="5"] { transition-delay: 0.35s; }

/* --------------------------------------------------------------------------
   22. Páginas de pós-envio
   -------------------------------------------------------------------------- */
.thanks {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + var(--sp-8)) var(--gutter) var(--sp-8);
  background: var(--navy-900);
  color: var(--on-dark);
}

.thanks__inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.thanks__check {
  width: 62px;
  height: 62px;
  margin: 0 auto var(--sp-6);
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}

.thanks__check svg {
  width: 26px;
  height: 26px;
}

.thanks h1 {
  font-size: clamp(1.875rem, 5vw, 2.875rem);
}

.thanks h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.thanks__lede {
  margin-top: var(--sp-4);
  color: var(--on-dark-2);
  font-size: var(--fs-lede);
}

.thanks__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  text-align: left;
}

.thanks__step {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--sp-4);
}

.thanks__step b {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: var(--sp-2);
}

.thanks__step p {
  font-size: var(--fs-small);
  color: var(--on-dark-2);
  line-height: 1.6;
}

.thanks__panel {
  margin-top: var(--sp-8);
  padding: var(--sp-5);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(16, 36, 55, 0.6);
  text-align: left;
}

.thanks__panel p {
  font-size: var(--fs-small);
  color: var(--on-dark-2);
  line-height: 1.7;
}

.thanks__panel pre {
  margin-top: var(--sp-4);
  max-height: 190px;
  overflow: auto;
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  background: rgba(7, 19, 32, 0.7);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.7;
  color: var(--on-dark-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.thanks__panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.thanks__foot {
  margin-top: var(--sp-8);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

/* --------------------------------------------------------------------------
   23. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Sem isto o plano em destaque ficaria órfão em meia coluna */
  .plan--featured {
    grid-column: 1 / -1;
  }

  .plan__sub {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-7);
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .behind {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .mobilebar {
    display: flex;
  }

  body {
    padding-bottom: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 60px;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan--featured {
    grid-column: auto;
  }

  .compare__table {
    display: none;
  }

  .compare__cards {
    display: block;
  }

  .proof__list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-5);
    text-align: left;
  }

  .proof__item {
    display: flex;
    align-items: baseline;
    gap: var(--sp-4);
  }

  .proof__num {
    font-size: 1.75rem;
    min-width: 4.5ch;
  }

  .proof__label {
    margin-top: 0;
  }

  .fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .options--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .thanks__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-5);
  }

  .review__row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-1);
  }

  .agenda__grid {
    gap: 4px;
  }

  /* Selo menor e quase colado à borda, para não vazar do viewport */
  .solution__stage {
    --seal: clamp(112px, 26vw, 160px);
  }

  .solution__seal {
    top: calc(var(--seal) * -0.44);
    right: calc(var(--seal) * -0.08);
  }
}

@media (max-width: 560px) {
  .benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .method {
    grid-template-columns: minmax(0, 1fr);
  }

  .behind {
    grid-template-columns: minmax(0, 1fr);
  }

  .behind img {
    height: 260px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .agenda__day,
  .agenda__time {
    font-size: 0.563rem;
  }
}

/* Celular deitado: sobra largura e falta altura. O menu em tela cheia e o
   lightbox precisam encolher para caber sem rolagem interna. */
@media (orientation: landscape) and (max-height: 540px) {
  .menu {
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + var(--sp-2));
    padding-bottom: var(--sp-4);
  }

  /* Duas colunas: no deitado sobra largura e falta altura, e assim o CTA
     do rodapé do menu continua visível sem rolagem interna. */
  .menu__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sp-6);
    margin-bottom: var(--sp-5);
  }

  .menu__link {
    font-size: 1.125rem;
    padding-block: var(--sp-2);
  }

  .lightbox {
    --lb-h: 74svh;
    gap: var(--sp-3);
    padding-block: var(--sp-5) var(--sp-3);
  }

  .lightbox__close {
    top: var(--sp-2);
    width: 42px;
    height: 42px;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + var(--sp-6));
  }
}

/* --------------------------------------------------------------------------
   24. Acessibilidade e preferências
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.section--light :focus-visible,
.section--gold :focus-visible {
  outline-color: var(--gold);
}

@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;
  }

  .menu.is-open .menu__link {
    opacity: 1;
    transform: none;
  }

  .solution__seal img {
    animation: none;
  }
}

@media print {
  .nav,
  .menu,
  .mobilebar,
  .videos,
  .behind {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   25. Base comum às páginas PHP (migração 2026-10)
   -------------------------------------------------------------------------- */

/* O espaço da barra de rolagem fica sempre reservado: travar a rolagem do
   body (menu, lightbox) não desloca a página e o JS não precisa medir nada. */
html {
  scrollbar-gutter: stable;
}

/* Sentinela da navbar (main.js, bloco 1): ao sair da tela, a navbar ganha
   fundo. Substitui o listener de scroll que lia window.scrollY. */
.nav-sentinel {
  position: absolute;
  top: 80px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Destinos de scrollIntoView descontam a navbar fixa */
.wizard,
.lead-form .field,
.lead-form fieldset {
  scroll-margin-top: calc(var(--nav-h) + 22px);
}

/* Selo ao lado da marca na navbar mínima (ex.: "EmpreMed") */
.nav__badge {
  margin-left: auto;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}

/* Select no mesmo padrão visual dos inputs do wizard */
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 2.4rem 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(7, 19, 32, 0.5)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23c3a05c' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 0.9rem center / 12px 8px;
  color: var(--on-dark);
  font-size: var(--fs-small);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.field select:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(7, 19, 32, 0.75);
}

.field select:invalid {
  color: #5c7185; /* opção vazia ("Selecione") no tom do placeholder */
}

.field select[aria-invalid="true"] {
  border-color: #d97e6a;
}

.field select option {
  background: var(--navy);
  color: var(--on-dark);
}

/* Checkbox de consentimento LGPD */
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-micro);
  line-height: 1.7;
  color: var(--on-dark-2);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15em;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Faixa de status do formulário: erro geral, aviso ou progresso */
.form-status {
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border-left: 2px solid #d97e6a;
  background: rgba(217, 126, 106, 0.08);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: #e6a08f;
}

.form-status[hidden] {
  display: none;
}

.form-status--info {
  border-left-color: var(--gold);
  background: var(--gold-soft);
  color: var(--on-dark-2);
}

.form-status a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Campo-isca anti-spam: fora da tela, mas não display:none, que muitos
   robôs reconhecem e pulam. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Texto longo (política de privacidade) sobre fundo claro */
.prose {
  max-width: 68ch;
}

.prose h2 {
  margin: var(--sp-7) 0 var(--sp-4);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.prose p,
.prose li {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--muted);
}

.prose p + p {
  margin-top: var(--sp-3);
}

.prose ul {
  margin-top: var(--sp-3);
  padding-left: 1.2rem;
  list-style: disc;
}

.prose li + li {
  margin-top: var(--sp-2);
}

.prose li::marker {
  color: var(--gold);
}

.prose a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--ink);
}

.prose .prose__meta {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Página de conteúdo sem hero: o topo desconta a navbar fixa */
.section--page {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem));
}

.prose mark {
  padding: 0 0.25em;
  background: #fde9a8;
  color: var(--ink);
}
