/* ==========================================================================
   LP e TYP — Panorama do Mercado de Produto 2026-2027
   (panoramas.pm3.com.br/ e /typ-estudos/)

   Mobile first. Fundo branco predominante, com um único bloco de contraste
   (.institutional, o bloco da PM3 que fecha as duas páginas). Tokens do PM3 Design System: não introduzir cores/fontes fora desta
   lista. O cinza névoa (#B9B5C1) dá 2:1 sobre branco, então nas superfícies claras
   o texto secundário usa --color-text-soft e o névoa fica só nas bordas e no escuro.
   ========================================================================== */

:root {
  --color-deep-purple: #452e78;
  --color-royal-purple: #6645b1;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-fog: #b9b5c1;
  --color-yellow-glow: #ffb12a;
  --color-muted: #f5f4f8;
  --color-text-soft: #46424f;
  --color-border: #e6e3ee;
  --color-error: #c0392b;

  --font-heading: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: 16px;
  --radius-btn: 6px;
  --radius-card: 12px;
  --radius-hero: 20px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 48px; }
}

/* ---------- Base ---------- */

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

p { margin: 0; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a { color: var(--color-royal-purple); }

/* Foco visível: roxo nas superfícies claras e amarelo nas escuras. */
:focus-visible {
  outline: 3px solid var(--color-royal-purple);
  outline-offset: 3px;
}

.institutional :focus-visible {
  outline-color: var(--color-yellow-glow);
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.125em;
}

/* ---------- Layout ---------- */

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

/* Itens de grid têm `min-width: auto` por padrão: conteúdo largo estica a coluna e
   vaza a viewport no mobile. Zerar faz a coluna respeitar a largura da tela. */
.hero__inner > *,
.studies > * {
  min-width: 0;
}

.section { padding: 56px 0; }
.section--muted { background: var(--color-muted); }

.section__head {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section__foot {
  margin-top: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 48px; }
  .section__foot { margin-top: 48px; }
}

.eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-royal-purple);
}

.h2 {
  font-size: clamp(1.625rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.lead {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--color-text-soft);
}

@media (min-width: 768px) {
  .lead { font-size: 1.0625rem; }
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn--accent {
  background: var(--color-yellow-glow);
  color: var(--color-black);
  box-shadow: 0 8px 24px rgba(255, 177, 42, 0.28);
}

.btn--accent:hover { background: #ffc257; }

.btn--primary {
  background: var(--color-royal-purple);
  color: var(--color-white);
}

.btn--primary:hover { background: var(--color-deep-purple); }

.btn--outline {
  background: transparent;
  color: var(--color-royal-purple);
  box-shadow: inset 0 0 0 1px var(--color-royal-purple);
}

.btn--outline:hover {
  background: var(--color-royal-purple);
  color: var(--color-white);
}

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

/* ---------- Seção 1. Herói ---------- */

.hero { padding: 24px 0 40px; }

.hero__inner {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .hero { padding: 56px 0 64px; }
}

/* Em 3 áreas para o formulário ficar logo depois da promessa no mobile e, no
   desktop, ocupar a coluna direita inteira. */
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
      "promise form"
      "support form";
    grid-template-rows: max-content 1fr;
    column-gap: 64px;
    row-gap: 32px;
    align-items: start;
  }

  .hero__promise { grid-area: promise; }
  .form-card { grid-area: form; }
  .hero__support { grid-area: support; }
}

.hero__logo {
  width: auto;
  height: 28px;
  margin-bottom: 24px;
  filter: brightness(0) saturate(100%) invert(18%) sepia(50%) saturate(800%) hue-rotate(230deg) brightness(80%);
}

.hero h1 {
  font-size: clamp(1.875rem, 8.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-royal-purple);
}

.hero__sub {
  margin-top: 12px;
  max-width: 34em;
  font-size: 1rem;
  color: var(--color-text-soft);
}

@media (min-width: 768px) {
  .hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.25rem); }
  .hero__sub { margin-top: 16px; font-size: 1.125rem; }
}

/* Prévia de dados */

.preview { border-top: 1px solid var(--color-border); }

.preview__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.preview__theme {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-royal-purple);
}

.preview__number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-deep-purple);
}

.preview__text {
  font-size: 1rem;
  color: var(--color-text-soft);
}

@media (min-width: 768px) {
  .preview__item {
    grid-template-columns: 148px minmax(0, 1fr);
    column-gap: 24px;
    align-items: center;
  }

  .preview__theme { grid-column: 1 / -1; }
  .preview__text { font-size: 0.9375rem; line-height: 1.5; }
}

.hero__seal {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--color-text-soft);
}

.hero__seal strong {
  font-weight: 600;
  color: var(--color-black);
}

/* Formulário */

.form-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-hero);
  background: var(--color-white);
  box-shadow: 0 16px 48px rgba(69, 46, 120, 0.14);
}

/* Telas muito estreitas: o respiro menor mantém o CTA de envio em uma linha. */
@media (max-width: 359px) {
  .form-card { padding: 24px 16px; }
}

@media (min-width: 768px) {
  .form-card { padding: 32px; }
}

.form-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .form-card__title { font-size: 1.5rem; }
}

/* Mantém o ano inteiro na mesma linha ("2026-" sozinho no fim da linha fica feio). */
.nowrap { white-space: nowrap; }

.form-card__sub {
  margin-top: 4px;
  font-size: 1rem;
  color: var(--color-text-soft);
}

.form-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-soft);
  text-align: center;
}

/* Formulário do HubSpot (embed v2 inline, sem a folha de estilo do HubSpot).
   Os seletores abaixo são as classes que o embed gera. */

.hs-form-shell { margin-top: 8px; }

/* Esqueleto: espelha as medidas de .hs-form-field/.hs-input e reserva a altura. */
.hs-form-skeleton { display: block; }
.hs-form-shell:not(.is-loading) .hs-form-skeleton { display: none; }

.skel {
  display: block;
  border-radius: var(--radius-btn);
  background: linear-gradient(90deg, #eeecf3 25%, #f7f6fa 50%, #eeecf3 75%);
  background-size: 400% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
}

.skel--label {
  width: 38%;
  height: 14px;
  margin-top: 16px;
  margin-bottom: 6px;
}

.skel--input { height: 48px; }

.skel--button {
  height: 48px;
  margin-top: 24px;
  background: #efe7f7;
}

@keyframes skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.hs-form-error {
  padding: 24px 0;
  font-size: 1rem;
  color: var(--color-error);
}

.hs-form-pm3 fieldset {
  max-width: none !important;
  margin: 0;
  padding: 0;
  border: 0;
}

.hs-form-pm3 .form-columns-1,
.hs-form-pm3 .form-columns-2,
.hs-form-pm3 .form-columns-3 { width: 100%; }

/* O embed define larguras em % e margens negativas nas colunas: em tela estreita
   isso estoura o card. Aqui cada campo ocupa a largura toda. */
.hs-form-pm3 .hs-form-field {
  float: none !important;
  width: 100% !important;
  margin-top: 16px;
}

.hs-form-pm3 .hs-form-field > label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.hs-form-pm3 .hs-form-required { color: var(--color-royal-purple); }

.hs-form-pm3 .hs-field-desc {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  color: var(--color-text-soft);
}

.hs-form-pm3 .input { margin: 0 !important; }

/* O embed injeta um bloco `.hs-custom-style > div input:not(...)` com especificidade
   altíssima que força min-height/padding, daí os !important. A fonte de 16px evita
   o zoom automático do iOS ao focar o campo. */
.hs-form-pm3 .hs-input {
  width: 100% !important;
  max-width: 100%;
  min-height: 48px !important;
  height: auto !important;
  padding: 12px 14px !important;
  font-family: var(--font-body);
  font-size: 1rem !important;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid #d8d5e0;
  border-radius: var(--radius-btn);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hs-form-pm3 select.hs-input { appearance: auto; }

.hs-form-pm3 textarea.hs-input {
  min-height: 96px !important;
  resize: vertical;
}

.hs-form-pm3 .hs-input::placeholder { color: #6b6775; }

.hs-form-pm3 .hs-input:focus {
  outline: none;
  border-color: var(--color-royal-purple);
  box-shadow: 0 0 0 3px rgba(102, 69, 177, 0.18);
}

.hs-form-pm3 .hs-input.invalid,
.hs-form-pm3 .hs-input.error {
  border-color: var(--color-error);
  background: #fdf5f4;
}

/* Telefone com seletor de país: select e número lado a lado, sem estourar. */
.hs-form-pm3 .hs-fieldtype-intl-phone.hs-input {
  display: flex;
  gap: 8px;
  padding: 0 !important;
  border: 0;
  background: transparent;
  min-height: 0 !important;
}

.hs-form-pm3 .hs-fieldtype-intl-phone select,
.hs-form-pm3 .hs-fieldtype-intl-phone input {
  float: none !important;
  width: auto !important;
  min-width: 0;
}

.hs-form-pm3 .hs-fieldtype-intl-phone select { flex: 0 1 112px; }
.hs-form-pm3 .hs-fieldtype-intl-phone input { flex: 1 1 auto; }

/* Checkbox/radio (consentimento LGPD, por exemplo) */
.hs-form-pm3 .hs-form-booleancheckbox-display,
.hs-form-pm3 .hs-form-checkbox-display,
.hs-form-pm3 .hs-form-radio-display {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-soft);
}

.hs-form-pm3 .hs-form-booleancheckbox-display input,
.hs-form-pm3 .hs-form-checkbox-display input,
.hs-form-pm3 .hs-form-radio-display input {
  width: 20px !important;
  min-height: 0 !important;
  height: 20px !important;
  padding: 0 !important;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--color-royal-purple);
}

.hs-form-pm3 .inputs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-form-pm3 .legal-consent-container {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-soft);
}

/* Erros */
.hs-form-pm3 .hs-error-msgs {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.hs-form-pm3 .hs-error-msg,
.hs-form-pm3 .hs-error-msgs label {
  font-size: 0.875rem;
  color: var(--color-error);
}

.hs-form-pm3 .hs_error_rollup { margin-top: 12px; }

/* Botão de envio */
.hs-form-pm3 .hs-submit { margin-top: 24px; }
.hs-form-pm3 .actions { margin: 0; padding: 0; }

.hs-form-pm3 .hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  /* 8px laterais: em 320px o texto do CTA precisa de quase toda a largura para não
     quebrar no meio de "2026-2027" (input de envio não aceita <span> com nowrap). */
  padding: 14px 8px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--color-yellow-glow);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 177, 42, 0.28);
  transition: background-color 0.2s ease;
}

.hs-form-pm3 .hs-button:hover { background: #ffc257; }

.hs-form-pm3 .hs-button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Mensagem inline de sucesso (caso o redirecionamento demore) */
.hs-form-shell .submitted-message {
  padding: 16px 0;
  font-size: 1rem;
  color: var(--color-text-soft);
}

/* ---------- Seção 2. Outros estudos ---------- */

/* Cada estudo é uma capa feita em CSS, no estilo das capas dos PDFs da PM3: fundo escuro,
   logo, título em caixa alta em dois tons e traços finos.

   Mobile: catálogo que rola para o lado, a pedido do time. A lista vai de borda a borda
   da tela (margem negativa = gutter do container) e cada card ocupa cerca de 2/3 da
   largura, para o seguinte aparecer cortado e mostrar que dá para arrastar. Só a lista
   rola: a página continua sem rolagem horizontal. A partir de 768px vira grade. */

.studies {
  display: flex;
  gap: 12px;
  margin: 0 calc(var(--gutter) * -1);
  /* O respiro vertical evita que a sombra do card seja cortada pelo overflow. */
  padding: 4px 0 16px var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  -webkit-overflow-scrolling: touch;
}

/* Respiro no fim da lista. Um padding-right no container não entra na área de rolagem
   em todo navegador; este item vazio entra. Soma com o gap e fecha o gutter. */
.studies::after {
  content: "";
  flex: 0 0 calc(var(--gutter) - 12px);
}

/* No toque a barra de rolagem some (o card cortado já indica o arraste). Com mouse ela
   fica, porque é o jeito de rolar a lista numa janela estreita. */
@media (hover: none) {
  .studies { scrollbar-width: none; }
  .studies::-webkit-scrollbar { display: none; }
}

.study {
  position: relative;
  display: flex;
  flex: 0 0 min(68%, 260px);
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.study:hover {
  border-color: rgba(102, 69, 177, 0.4);
  box-shadow: 0 12px 32px rgba(69, 46, 120, 0.14);
}

/* As medidas internas usam cqi (1% da largura da capa), para a capa manter as mesmas
   proporções de 156px (mobile) a 300px (desktop). Os valores em px/rem logo antes são o
   fallback para navegador sem container queries. */
.cover {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-deep-purple);
  color: var(--color-white);
}

/* Roxo e preto alternados. Vale para a fila do mobile e para as 3 colunas do desktop,
   onde vira xadrez; as 2 colunas do tablet têm regra própria mais abaixo. */
.study:nth-child(even) .cover { background: var(--color-black); }

/* Capa desenhada pelo design (campo `capa` do estudo): a imagem ocupa a capa inteira,
   na mesma proporção 4:5. Ver CAPAS-GUIA.md. */
.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  padding: 8cqi;
}

/* Traços finos de canto arredondado, como nas capas dos PDFs. */
.cover__inner::before,
.cover__inner::after {
  content: "";
  position: absolute;
  border: 0 solid var(--color-royal-purple);
  pointer-events: none;
}

.cover__inner::before {
  top: 0;
  left: 0;
  width: 68%;
  height: 27%;
  border-width: 0 1px 1px 0;
  border-bottom-right-radius: 16px;
  border-bottom-right-radius: 9cqi;
}

.cover__inner::after {
  right: 0;
  bottom: 0;
  width: 24%;
  height: 15%;
  border-width: 1px 0 0 1px;
  border-top-left-radius: 16px;
  border-top-left-radius: 9cqi;
}

/* align-self: sem ele o flex estica a imagem na largura toda e o logo fica centralizado. */
.cover__logo {
  position: relative;
  align-self: flex-start;
  width: auto;
  height: 14px;
  height: max(14px, 7cqi);
  filter: brightness(0) invert(1);
}

.cover__title {
  position: relative;
  margin-top: auto;
  font-size: 1rem;
  font-size: 10.5cqi;
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
}

.cover__title span {
  display: block;
  color: var(--color-gray-fog);
}

.cover__year {
  position: relative;
  margin-top: 6px;
  margin-top: 3.5cqi;
  font-family: var(--font-heading);
  /* O ano é o que diferencia as edições do Panorama entre si, por isso tem peso. */
  font-size: 0.8125rem;
  font-size: max(0.8125rem, 6cqi);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-gray-fog);
}

.study__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.study__fact {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-text-soft);
}

.study__btn {
  width: 100%;
  margin-top: auto;
  padding: 12px 8px;
  font-size: 1rem;
}

/* O card inteiro abre o pop-up: a área de clique do botão cobre a capa também. */
.study__btn::after {
  content: "";
  position: absolute;
  inset: 0;
}

.study:hover .study__btn {
  background: var(--color-royal-purple);
  color: var(--color-white);
}

/* Setas do carrossel: só no mobile, e só depois que o JS tira o `hidden`. Ficam logo abaixo
   da lista, e não por cima das capas, para não tampar o título dos relatórios. Na ponta
   em que a lista acabou, a seta fica apagada em vez de sumir, para o par não se deslocar. */
.carousel-nav,
.carousel-arrow { display: none; }

@media (max-width: 767px) {
  .carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .carousel-arrow:not([hidden]) {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cfcbdb;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-royal-purple);
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }

  .carousel-arrow:hover:not(:disabled) {
    background: var(--color-royal-purple);
    color: var(--color-white);
  }

  .carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .carousel-arrow svg {
    width: 24px;
    height: 24px;
  }
}

/* Tablet e desktop: grade, sem rolagem lateral. */
@media (min-width: 768px) {
  .studies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
  }

  .studies::after { content: none; }

  .study__body { gap: 16px; padding: 20px 24px 24px; }

  .study__btn { padding: 14px 24px; }
}

/* 2 colunas: xadrez precisa de outra sequência (1 roxa, 2 e 3 pretas, 4 roxa...). */
@media (min-width: 768px) and (max-width: 1023px) {
  .study:nth-child(n) .cover { background: var(--color-deep-purple); }

  .study:nth-child(4n + 2) .cover,
  .study:nth-child(4n + 3) .cover {
    background: var(--color-black);
  }
}

@media (min-width: 1024px) {
  .studies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Seção 3. FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

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

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-royal-purple);
}

.faq__item[open] summary::after { content: "−"; }

.faq__answer {
  max-width: 68ch;
  padding-bottom: 16px;
  font-size: 1rem;
  color: var(--color-text-soft);
}

/* ---------- Bloco institucional da PM3 (fecha a LP e a TYP; único bloco de contraste) ---------- */

/* A textura ocupa só a base da imagem (o resto é preto), por isso fica ancorada embaixo
   e o padding inferior reserva o espaço dela. Abaixo de 960px ela para de encolher para
   as ondas continuarem visíveis no celular. */
.institutional {
  padding: 56px 0 104px;
  background: var(--color-black) url("/assets/img/institutional-waves.webp") no-repeat center bottom / max(100%, 960px) auto;
  color: var(--color-white);
}

.institutional__logo {
  width: auto;
  height: 32px;
  margin-bottom: 32px;
  filter: brightness(0) invert(1);
}

.institutional__copy {
  display: grid;
  gap: 24px;
  max-width: 1160px;
  font-size: 1.0625rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .institutional { padding: 88px 0 184px; }

  .institutional__logo { height: 40px; }

  .institutional__copy { font-size: 1.375rem; line-height: 1.2; }
}

/* ==========================================================================
   Página de obrigado (TYP)
   ========================================================================== */

/* ---------- Seção 1. Confirmação e download ---------- */

.typ-hero { padding: 24px 0 48px; }

.typ-hero__inner {
  max-width: 820px;
  text-align: center;
}

.typ-hero .hero__logo { margin: 0 auto 24px; }

.typ-hero h1 {
  font-size: clamp(1.75rem, 7.4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.typ-hero h1 em {
  font-style: normal;
  color: var(--color-royal-purple);
}

.typ-hero__sub {
  max-width: 34em;
  margin: 12px auto 0;
  font-size: 1rem;
  color: var(--color-text-soft);
}

.typ-hero__btn {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  font-size: 1.0625rem;
}

.share {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.share__text {
  font-size: 1rem;
  font-weight: 500;
}

.share__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.share__btn {
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  font-size: 0.9375rem;
}

.typ-hero__note { margin-top: 24px; }

.typ-hero__note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .typ-hero { padding: 56px 0 72px; }

  .typ-hero .hero__logo { margin-bottom: 32px; }

  .typ-hero__sub {
    margin-top: 16px;
    font-size: 1.125rem;
  }

  .typ-hero__btn {
    width: auto;
    margin-top: 32px;
    padding: 18px 40px;
    font-size: 1.125rem;
  }

  .share__actions {
    display: flex;
    justify-content: center;
  }

  .share__btn { padding: 10px 24px; }
}

/* ---------- Seção 2. Outras edições ---------- */

.editions {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.edition {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
}

.edition__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.edition__btn { width: 100%; }

@media (min-width: 768px) {
  .edition {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
  }

  .edition__btn {
    flex: 0 0 auto;
    width: auto;
  }
}

/* ---------- Pop-up do formulário ---------- */

/* Trava a rolagem da página enquanto o pop-up está aberto. */
html.has-modal { overflow: hidden; }

/* A caixa não rola: quem rola é o miolo (.form-modal__body). Assim o botão de fechar fica
   sempre à vista, e um clique dentro da caixa nunca cai no próprio <dialog>, que é o que
   o JS usa para reconhecer o clique no fundo. */
.form-modal {
  width: min(480px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-hero);
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.form-modal::backdrop { background: rgba(0, 0, 0, 0.6); }

.form-modal__body {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* O título muda a cada estudo: a folga à direita mantém o texto longe do botão de fechar. */
.form-modal .eyebrow,
.form-modal .form-card__title { padding-right: 40px; }

.form-modal .eyebrow { margin-bottom: 8px; }

.form-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.form-modal__close:hover {
  background: var(--color-muted);
  color: var(--color-black);
}

.form-modal__close svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 359px) {
  .form-modal__body { padding: 24px 16px; }
}

@media (min-width: 768px) {
  .form-modal__body { padding: 32px; }
}

/* ---------- Compatibilidade com o bloco da Black Friday (bf26-oferta) ---------- */

/* Este arquivo zera o marcador de todas as listas (ul, ol), e o bloco da Black Friday
   conta com as bolinhas padrão do navegador nas listas dos balões de detalhe ("i").
   A regra fica aqui, e não no CSS do bloco, que é cópia fiel do original. */
.bfo-pop ul { list-style: disc; }

/* ---------- Pop-ups de campanha (OptinMonster) ---------- */

/* O OptinMonster entra de fora deste repositório e exibe campanhas de outras ofertas
   com z-index 666666666. No celular o pop-up cobre o formulário na LP e o
   botão de download na TYP, e as duas páginas têm oferta única. A regra vale para qualquer campanha, porque o id muda a cada
   uma. Só esconde: a campanha continua carregando e pode contar impressão no painel. */
.Campaign[id^="om-"] { display: none !important; }

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
