/* ==========================================================================
   Filipe Machado — Assessoria de Investimentos
   Landing page  ·  folha de estilo única
   --------------------------------------------------------------------------
   Sumário
   0. Tokens (cores, fontes, espaçamentos)
   1. Reset e base
   2. Layout (container, seções)
   3. Tipografia de seção (eyebrow, título, lead)
   4. Botões
   5. Cards (genérico + variações)
   6. Blocos específicos
      6.1 Hero
      6.2 Processo / passos
      6.3 Dores
      6.4 Comparativo
      6.5 Especificações da sessão
      6.6 Sobre
      6.7 CTA final
      6.8 Rodapé
   7. Utilitários, animação de entrada e acessibilidade
   8. Media queries
   ========================================================================== */


/* ==========================================================================
   FONTES (auto-hospedadas em assets/fonts/)
   --------------------------------------------------------------------------
   Libre Baskerville  → títulos
   IBM Plex Sans      → todo o resto: corpo, rótulos, botões, citações

   As duas são de licença aberta (SIL OFL), por isso podem ficar no próprio
   servidor — a página não pede nada ao Google. Os arquivos foram recortados
   para o português e para os pesos que a página usa de fato: a IBM Plex Sans
   continua variável na faixa 400–600, as outras duas viraram estáticas.
   ========================================================================== */
@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/libre-baskerville.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* ==========================================================================
   0. TOKENS
   ========================================================================== */
:root {
  /* ---- Marca: azul (Pantone Bright Coated 3035 C) ---- */
  --navy-deep:  #021823;   /* topo do gradiente das seções escuras */
  --navy:       #003044;   /* HTML oficial da marca */
  --navy-soft:  #0a3d54;   /* bordas e divisórias sobre escuro */

  /* ---- Marca: dourado (Pantone Metallic 872 C / Bright 1265 C) ---- */
  --gold-700:   #574d30;   /* HTML oficial — dourado profundo */
  --gold-600:   #886b25;   /* HTML oficial — dourado marca */
  --gold-500:   #9b7a3c;   /* estado hover dos botões */
  --gold-400:   #b9924c;   /* dourado principal — o mesmo do logo FM */
  --gold-300:   #d3b584;   /* dourado claro (eyebrow sobre fundo escuro) */

  /* ---- Neutros ---- */
  --cream:      #eae5dd;   /* seções bege */
  --off-white:  #f7f5f2;   /* seções claras */
  --white:      #ffffff;
  --line-light: #e2ddd4;   /* bordas sobre fundo claro */

  /* ---- Texto ---- */
  --ink:            #0e2233;  /* títulos sobre fundo claro */
  --ink-body:       #4c5b68;  /* corpo sobre fundo claro */
  --ink-muted:      #7c8892;  /* legendas / notas */
  --on-dark:        #ffffff;
  --on-dark-body:   rgba(226, 234, 240, .78);
  --on-dark-muted:  rgba(197, 210, 220, .58);

  /* ---- Tipografia ----
     Para trocar a fonte do site, altere as duas linhas abaixo (e os arquivos
     em assets/fonts/ com os respectivos @font-face acima).
     Pesos disponíveis: Libre Baskerville só em 400; IBM Plex Sans de 400 a
     600, mais o itálico em 400. */
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans:    "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Escala fluida — cresce entre 360px e 1440px de largura */
  --fs-h1:      clamp(1.95rem, 1.25rem + 3.1vw, 3.35rem);
  --fs-h2:      clamp(1.6rem, 1.15rem + 2vw, 2.5rem);
  --fs-h3:      clamp(1.05rem, 0.97rem + 0.4vw, 1.25rem);
  --fs-lead:    clamp(1rem, 0.95rem + 0.28vw, 1.125rem);
  --fs-body:    clamp(0.95rem, 0.92rem + 0.18vw, 1.0625rem);
  --fs-small:   clamp(0.82rem, 0.8rem + 0.12vw, 0.9rem);
  --fs-eyebrow: clamp(0.7rem, 0.68rem + 0.1vw, 0.78rem);

  /* ---- Espaçamento ---- */
  --pad-section: clamp(4.5rem, 3rem + 6.5vw, 8rem);
  --gap-card:    clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  --gutter:      clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);

  /* ---- Formas ---- */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(14, 34, 51, .04), 0 8px 24px rgba(14, 34, 51, .06);
  --shadow-card-hover: 0 2px 4px rgba(14, 34, 51, .06), 0 18px 40px rgba(14, 34, 51, .10);
  --shadow-gold: 0 10px 30px rgba(136, 107, 37, .28);

  --ease: cubic-bezier(.22, .61, .36, 1);
}


/* ==========================================================================
   1. RESET E BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}

p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

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

a { color: inherit; }

strong, b { font-weight: 600; }

em.accent, .accent {
  color: var(--gold-400);
  font-style: normal;
}


/* ==========================================================================
   2. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 880px; }

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

.section--light { background: var(--off-white); }
.section--cream { background: var(--cream); }

.section--dark {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(10, 61, 84, .55) 0%, rgba(2, 24, 35, 0) 62%),
    linear-gradient(180deg, var(--navy-deep) 0%, #04202f 45%, var(--navy-deep) 100%);
  color: var(--on-dark-body);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--on-dark); }


/* ==========================================================================
   3. TIPOGRAFIA DE SEÇÃO
   ========================================================================== */
.eyebrow {
  margin: 0 0 1rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.section--dark .eyebrow { color: var(--gold-300); }

/* Eyebrow do hero, com filete abaixo */
.eyebrow--ruled {
  display: inline-block;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(211, 181, 132, .45);
}

.section__head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 1.8rem + 2.4vw, 4rem);
  text-align: center;
}

.section__title {
  font-size: var(--fs-h2);
  margin-bottom: .85rem;
}

.section__title--left { text-align: left; }

.section__lead {
  font-size: var(--fs-lead);
  color: var(--ink-body);
  margin: 0;
}

.section--dark .section__lead { color: var(--on-dark-body); }

/* Citação com filete dourado à esquerda */
.pull-quote {
  max-width: 44rem;
  margin: clamp(2.25rem, 4vw, 3.25rem) auto 0;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid var(--gold-400);
}

.pull-quote--wide { max-width: 56rem; }

.pull-quote p {
  font-size: var(--fs-lead);
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
}

.section--dark .pull-quote p { color: var(--on-dark-body); }

.closing-line {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: var(--fs-lead);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}


/* ==========================================================================
   4. BOTÕES
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: #1c1608;
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: linear-gradient(180deg, #c9a25c 0%, var(--gold-500) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(136, 107, 37, .34);
}

.btn--gold:active { transform: translateY(0); }

.btn--lg { padding: 1.15rem 2.5rem; }

/* Estado enquanto o formulário ainda não está configurado */
.btn[aria-disabled="true"] { cursor: default; }


/* ==========================================================================
   5. CARDS
   ========================================================================== */
.cards {
  display: grid;
  gap: var(--gap-card);
}

.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.card {
  padding: clamp(1.4rem, 1rem + 1.2vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(193, 160, 84, .5);
  box-shadow: var(--shadow-card-hover);
}

.card__title {
  font-size: var(--fs-h3);
  margin-bottom: .6rem;
}

.card__text {
  font-size: var(--fs-body);
  color: var(--ink-body);
  margin: 0;
}

/* Ícone em quadro dourado preenchido */
.icon-tile {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: #fff;
}

.icon-tile svg { width: 1.35rem; height: 1.35rem; }

/* Ícone em traço, sem quadro */
.icon-line {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold-600);
}

.icon-line svg { width: 1.6rem; height: 1.6rem; }


/* ==========================================================================
   6. BLOCOS ESPECÍFICOS
   ========================================================================== */

/* ---- 6.1 Hero ---------------------------------------------------------- */
.hero {
  padding-block: clamp(4rem, 2.5rem + 7vw, 8.5rem);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% 0 auto 0;
  height: 70%;
  background: radial-gradient(45% 60% at 30% 20%, rgba(193, 160, 84, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-h1);
  margin-bottom: 1.5rem;
}

.hero__lead {
  max-width: 34rem;
  font-size: var(--fs-lead);
  color: var(--on-dark-body);
  margin-bottom: 2.25rem;
}

.hero__micro {
  max-width: 30rem;
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--on-dark-muted);
}

/* Moldura do retrato */
.portrait {
  position: relative;
  margin: 0;
  padding: .5rem;
  border: 1px solid rgba(193, 160, 84, .32);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: calc(var(--radius-lg) - 4px);
  background: var(--navy-soft);
}

.hero__figure { max-width: 26rem; margin-inline: auto; width: 100%; }

/* Estado temporário: foto ainda não colocada em assets/img/ */
.portrait--empty::before {
  content: attr(data-empty-label);
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 1rem;
  border-radius: calc(var(--radius-lg) - 4px);
  background: linear-gradient(160deg, var(--navy-soft) 0%, var(--navy-deep) 100%);
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
  text-align: center;
}


/* ---- 6.2 Processo / passos --------------------------------------------- */
.step__num {
  display: block;
  margin-bottom: .9rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold-600);
}


/* ---- 6.3 Dores --------------------------------------------------------- */
.card--pain {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: clamp(1.15rem, .9rem + .8vw, 1.6rem);
}

.card--pain p {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--ink);
  line-height: 1.55;
}

.pain__arrow {
  flex: none;
  margin-top: .3em;
  color: var(--gold-400);
}

.pain__arrow svg { width: 1.05rem; height: 1.05rem; }


/* ---- 6.4 Comparativo --------------------------------------------------- */
/* Por padrão (telas estreitas) o bloco vira uma pilha: tema, o que o mercado
   faz e, logo abaixo com filete dourado, como eu trabalho. A partir de 860px
   ele se transforma na tabela de duas colunas (ver seção 8). */
.compare {
  display: block;
  max-width: 62rem;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .015);
}

.compare__head { display: none; }

.compare__row { padding: clamp(1.25rem, 4vw, 1.75rem); }

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

.compare__cell { padding: 0; }

.compare__cell--mine {
  margin-top: 1.15rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-400);
}

/* Empilhado: o tema já apareceu na primeira metade, então a segunda recebe
   o nome da coluna no lugar do tema repetido. */
.compare__cell--mine .compare__label { display: none; }

.compare__cell--mine::before {
  content: "Como eu trabalho";
  display: block;
  margin-bottom: .5rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.compare__label {
  margin: 0 0 .5rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.compare__text {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--on-dark-body);
}

.compare__cell--mine .compare__text { color: rgba(255, 255, 255, .9); }


/* ---- 6.5 Especificações da sessão -------------------------------------- */
.card--spec { text-align: center; }

.spec__label {
  margin: 0 0 .45rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.spec__value {
  margin: 0;
  font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem);
  font-weight: 600;
  color: var(--ink);
}


/* ---- 6.6 Sobre --------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 1.8rem + 2.6vw, 4rem);
  align-items: center;
}

.about__figure { max-width: 24rem; width: 100%; margin-inline: auto; }

.about__content .section__title { text-align: left; margin-bottom: 1.25rem; }

.about__text {
  font-size: var(--fs-lead);
  color: var(--on-dark-body);
  margin-bottom: 1.1rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.75rem;
}

.badge {
  padding: .55rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, .9);
}


/* ---- 6.7 CTA final ----------------------------------------------------- */
.cta-final { text-align: center; }

.cta-final .eyebrow { color: var(--gold-600); }

.cta-final .section__lead {
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 3vw, 2.75rem);
}

.cta-final__micro {
  margin-top: 1.1rem;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}


/* ---- 6.8 Rodapé -------------------------------------------------------- */
.footer {
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background: var(--navy-deep);
  color: rgba(197, 210, 220, .55);
  text-align: center;
}

.footer__logo {
  width: clamp(150px, 18vw, 200px);
  height: auto;
  margin: 0 auto clamp(1.75rem, 3vw, 2.25rem);
  opacity: .7;
}

.footer p {
  margin-bottom: 1rem;
  font-size: .78rem;
  line-height: 1.7;
}

.footer p:last-child { margin-bottom: 0; }


/* ==========================================================================
   7. UTILITÁRIOS, ANIMAÇÃO E ACESSIBILIDADE
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--gold-400);
  color: #1c1608;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

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

/* Entrada suave ao rolar.
   Só esconde o bloco se o JavaScript estiver ativo (classe .js no <html>),
   para que a página continue legível caso o script não carregue. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}

.js .reveal--delay { transition-delay: .12s; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */

/* --- Tablet em pé / celular grande na horizontal --------------------- */
@media (min-width: 640px) {
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Tablet deitado --------------------------------------------------- */
@media (min-width: 860px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }

  /* Comparativo vira tabela de duas colunas */
  .compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .compare__row { display: contents; }

  .compare__head {
    display: block;
    padding: 1.15rem clamp(1.15rem, 2vw, 1.75rem);
    background: rgba(255, 255, 255, .045);
    font-size: var(--fs-eyebrow);
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
  }

  .compare__head--muted { color: var(--on-dark-muted); }
  .compare__head--gold  { color: var(--gold-300); }

  .compare__cell {
    padding: clamp(1.15rem, 2vw, 1.6rem) clamp(1.15rem, 2vw, 1.75rem);
    border-top: 1px solid rgba(255, 255, 255, .085);
    margin-top: 0;
  }

  /* Divisória vertical entre as duas colunas */
  .compare__head--gold,
  .compare__cell--mine {
    border-left: 1px solid rgba(255, 255, 255, .085);
  }

  .compare__cell--mine::before { display: none; }
  .compare__cell--mine .compare__label { display: block; color: var(--gold-300); }
}

/* --- Notebook / monitor ---------------------------------------------- */
@media (min-width: 960px) {
  .hero__grid   { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .about__grid  { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }

  .hero__figure  { max-width: none; }
  .about__figure { max-width: none; }
}

/* --- Telas muito largas ---------------------------------------------- */
@media (min-width: 1600px) {
  .container { max-width: 1240px; }
}

/* --- Telas estreitas: reduz molduras e respiro ------------------------ */
@media (max-width: 480px) {
  .portrait { padding: .35rem; }
  .btn { width: 100%; padding-inline: 1.25rem; }
  .hero__lead, .hero__micro { max-width: none; }
}

/* --- Telas baixas na horizontal (ex.: celular deitado) ---------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-block: clamp(3rem, 8vh, 4.5rem); }
}

/* --- Impressão -------------------------------------------------------- */
@media print {
  .section--dark { background: #fff; color: #000; }
  .section--dark h1, .section--dark h2, .section--dark h3 { color: #000; }
  .btn, .hero__glow { display: none; }
}
