/* Páginas estáticas de fluentool.com/aprender/. Cores, fontes e medidas vêm do app (pdf-reader-webapp). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/aprender/assets/inter-latin.woff2") format("woff2");
}

:root {
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;
  --indigo-950: #1e1b4b;
  --cinza-50: #f9fafb;
  --cinza-100: #f3f4f6;
  --cinza-200: #e5e7eb;
  --cinza-300: #d1d5db;
  --cinza-400: #9ca3af;
  --cinza-500: #6b7280;
  --cinza-600: #4b5563;
  --cinza-700: #374151;
  --cinza-800: #1f2937;
  --cinza-900: #111827;
  --cinza-950: #030712;
  --destaque: rgba(254, 240, 138, 0.6);
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --serifa: Georgia, Cambria, "Times New Roman", Times, serif;
  --saida: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

body {
  margin: 0;
  background: #fff;
  color: var(--cinza-700);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--indigo-200); color: var(--indigo-950); }

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

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

p, ul, h1, h2, h3, figure { margin: 0; }

.pular {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--cinza-900);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.pular:focus { transform: none; }

/* Header: mesmo comportamento da Navbar do app. Transparente no topo, pílula branca ao rolar. */
.topo { position: fixed; top: 0; left: 0; z-index: 50; width: 100%; }

.topo-faixa {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  transition: max-width 0.5s var(--saida), margin-top 0.5s var(--saida), padding 0.5s var(--saida);
}

.topo-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border: 1px solid transparent;
  border-radius: 9999px;
  transition: background-color 0.5s var(--saida), border-color 0.5s var(--saida),
    box-shadow 0.5s var(--saida), padding 0.5s var(--saida);
}

.topo.rolou .topo-faixa { max-width: 56rem; margin-top: 0.75rem; padding: 0 0.5rem; }

.topo.rolou .topo-barra {
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(229, 231, 235, 0.5);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topo-logo { display: block; flex: none; border-radius: 4px; }
.topo-logo img { width: 107px; height: 20px; }

.topo-links, .topo-acoes { display: none; align-items: center; gap: 0.25rem; }
.topo-acoes { gap: 0.5rem; }

.topo-link {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  color: var(--cinza-600);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.topo-comecar {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: var(--cinza-900);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.topo-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.5rem -0.625rem -0.5rem 0;
  color: var(--cinza-700);
  cursor: pointer;
  list-style: none;
}
.topo-menu > summary::-webkit-details-marker { display: none; }
.topo-menu .icone-fechar, .topo-menu[open] .icone-abrir { display: none; }
.topo-menu[open] .icone-fechar { display: block; }

.topo-gaveta {
  position: absolute;
  top: 100%;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--cinza-100);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
}
/* A pílula usa backdrop-filter, que passa a ser a referência de posição da gaveta */
.topo.rolou .topo-gaveta { left: 0; right: 0; }

.topo-gaveta a {
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--cinza-600);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.topo-gaveta hr {
  width: 100%;
  margin: 0.25rem 0;
  border: 0;
  border-top: 1px solid var(--cinza-100);
}
.topo-gaveta .topo-comecar {
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* Abertura */
.abre {
  padding: 8rem 0 3.5rem;
  background: linear-gradient(to bottom, var(--indigo-50), #fff);
}

.coluna { max-width: 45.5rem; margin: 0 auto; padding: 0 1.5rem; }

h1, h2 {
  color: var(--cinza-900);
  font-family: var(--serifa);
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.25rem); line-height: 1.12; letter-spacing: -0.012em; }

.lide { margin-top: 1.5rem; color: var(--cinza-600); font-size: 1.25rem; line-height: 1.6; text-wrap: pretty; }
.lide strong { color: var(--cinza-900); font-weight: 600; }

.data { margin-top: 1.25rem; color: var(--cinza-600); font-size: 0.875rem; }

/* Conteúdo */
.texto { padding-bottom: 5rem; }

.texto section { margin-top: 4rem; }
.texto section:first-child { margin-top: 0; }

.texto h2 { margin-bottom: 1.25rem; font-size: 1.875rem; line-height: 1.2; }

.texto h3 { color: var(--cinza-900); font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }

.texto p { text-wrap: pretty; }
.texto p + p { margin-top: 1rem; }

.texto a:not([class]) {
  color: var(--indigo-600);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--indigo-200);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.texto section > h3 { margin: 1.75rem 0 0.375rem; }

.texto ul:not([class]), .texto ol:not([class]) { margin: 1rem 0 0; padding-left: 1.25rem; }
.texto ul:not([class]) li + li, .texto ol:not([class]) li + li { margin-top: 0.5rem; }

.texto p + .tabela { margin-top: 1.25rem; }
.texto .tabela + p { margin-top: 1.25rem; }

/* Tabela: tabela de verdade no computador, fichas empilhadas no celular */
.tabela {
  overflow: hidden;
  border: 1px solid var(--cinza-200);
  border-radius: 1rem;
  background: #fff;
}

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

.tabela th {
  padding: 0.75rem 1.25rem;
  background: var(--cinza-50);
  color: var(--cinza-600);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.tabela td {
  padding: 0.9375rem 1.25rem;
  border-top: 1px solid var(--cinza-100);
  vertical-align: baseline;
}

.tabela td:nth-child(1) { color: var(--cinza-900); font-family: var(--serifa); font-size: 1.1875rem; font-weight: 700; }

/* .pares: quatro colunas, palavra e sentido à esquerda, palavra em português e a certa à direita */
.tabela.pares th:nth-child(3), .tabela.pares td:nth-child(3) { border-left: 1px solid var(--cinza-200); }
.tabela.pares td:nth-child(2) { color: var(--indigo-600); font-weight: 600; }
.tabela.pares td:nth-child(3) { color: var(--cinza-600); }
.tabela.pares td:nth-child(4) { color: var(--cinza-900); font-weight: 500; }

/* Bloco do PDF */
.pdf {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--indigo-50);
}

.pdf img {
  flex: none;
  width: 5.25rem;
  border-radius: 3px;
  box-shadow: 0 8px 16px -6px rgba(49, 46, 129, 0.45), 0 2px 4px rgba(49, 46, 129, 0.2);
  transform: rotate(-3deg);
}

.texto .pdf-titulo { color: var(--cinza-900); font-weight: 600; line-height: 1.4; }
.texto .pdf-apoio { margin-top: 0.25rem; color: var(--cinza-600); font-size: 0.9375rem; line-height: 1.5; }

/* Botões, nos mesmos formatos do app */
.botao {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--cinza-900);
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.botao-contorno {
  display: inline-block;
  margin-top: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--cinza-300);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--cinza-900);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.acao { margin-top: 1.75rem; }

/* Exemplos */
.exemplos { padding: 0; list-style: none; }

.exemplos li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: 1rem;
  padding: 1.125rem 0;
  border-top: 1px solid var(--cinza-200);
}
.exemplos li:last-child { border-bottom: 1px solid var(--cinza-200); }

.exemplos strong { grid-row: span 2; color: var(--cinza-900); font-weight: 600; }

.frase-en { color: var(--cinza-900); font-family: var(--serifa); font-size: 1.1875rem; line-height: 1.5; }
.frase-pt { color: var(--cinza-600); font-size: 1rem; }

mark {
  margin: 0 -0.08em;
  padding: 0.05em 0.08em;
  border-radius: 3px;
  background: var(--destaque);
  color: inherit;
}

/* Amostra do leitor: reproduz a caixa de tradução que aparece no app ao clicar na palavra */
.amostra {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
  padding: 6.5rem 1rem 2.25rem;
  border: 1px solid var(--cinza-200);
  border-radius: 1rem;
  background: var(--cinza-50);
}

.amostra-frase {
  color: var(--cinza-900);
  font-family: var(--serifa);
  font-size: 1.3125rem;
  line-height: 1.5;
  text-align: center;
}

.amostra-palavra { position: relative; display: inline-block; }

.amostra-caixa {
  position: absolute;
  bottom: calc(100% + 0.625rem);
  left: 50%;
  width: 11.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cinza-200);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  font-family: var(--sans);
  line-height: 1.3;
  text-align: left;
  transform: translateX(-50%);
}

.amostra-caixa::after {
  content: "";
  position: absolute;
  bottom: -0.375rem;
  left: 50%;
  width: 0.625rem;
  height: 0.625rem;
  border-right: 1px solid var(--cinza-200);
  border-bottom: 1px solid var(--cinza-200);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.amostra-caixa b { display: block; color: var(--cinza-900); font-size: 0.9375rem; font-weight: 600; }
.amostra-caixa i { display: block; margin-top: 0.125rem; color: var(--indigo-600); font-size: 0.875rem; font-style: normal; font-weight: 500; }

/* Perguntas */
.perguntas > div { padding: 1.125rem 0; border-top: 1px solid var(--cinza-200); }
.perguntas > div:last-child { border-bottom: 1px solid var(--cinza-200); }
.perguntas p { margin-top: 0.25rem; color: var(--cinza-600); }

/* Chamada final: mesma faixa da página inicial */
.chamada {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.5rem;
  background: linear-gradient(to bottom right, var(--indigo-900), var(--indigo-800), var(--indigo-950));
  text-align: center;
}

.chamada::before {
  content: "";
  position: absolute;
  top: -55%;
  left: 12%;
  width: 26rem;
  height: 150%;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  filter: blur(70px);
  transform: rotate(-38deg);
  pointer-events: none;
}

.chamada > * { position: relative; }

.chamada h2 {
  max-width: 40rem;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(1.875rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.15;
}

.chamada p { max-width: 34rem; margin: 1rem auto 0; color: var(--indigo-200); font-size: 1.125rem; line-height: 1.6; text-wrap: balance; }

.chamada .botao {
  margin-top: 2rem;
  padding: 0.875rem 2rem;
  background: #fff;
  color: var(--indigo-900);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}

/* Rodapé */
.rodape {
  padding: 4rem 1.5rem 2.5rem;
  border-top: 1px solid var(--cinza-800);
  background: var(--cinza-950);
  color: var(--cinza-400);
  text-align: center;
}

.rodape-marca {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-family: var(--serifa);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}
.rodape-marca img { width: auto; height: 1.75rem; }

.rodape p { font-size: 0.875rem; }
.rodape-lema { margin-top: 1rem; }

.rodape nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  max-width: 72rem;
  margin: 1.75rem auto 0;
}

.rodape nav a {
  padding: 0.25rem 0;
  color: var(--cinza-400);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.rodape-direitos {
  max-width: 72rem;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cinza-800);
}
.rodape .rodape-direitos { font-size: 0.75rem; }

@media (hover: hover) {
  .topo-link:hover { background: var(--cinza-100); color: var(--cinza-900); }
  .topo-comecar:hover { background: var(--cinza-800); }
  .topo-gaveta a:not(.topo-comecar):hover { background: var(--cinza-50); }
  .botao:hover { background: var(--cinza-800); }
  .botao-contorno:hover { border-color: var(--cinza-400); background: var(--cinza-50); }
  .chamada .botao:hover { background: var(--indigo-50); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2); }
  .rodape nav a:hover { color: #fff; }
}

/* Celular */
@media (max-width: 639px) {
  .abre { padding: 6.75rem 0 2.5rem; }
  .lide { font-size: 1.125rem; }
  .texto section { margin-top: 3.25rem; }
  .texto h2 { font-size: 1.625rem; }

  .tabela thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .tabela table, .tabela tbody, .tabela tr, .tabela td { display: block; }
  .tabela tr { padding: 1rem 1.125rem 1.0625rem; border-top: 1px solid var(--cinza-200); }
  .tabela tbody tr:first-child { border-top: 0; }
  .tabela td { padding: 0; border: 0; }
  .tabela.pares td:nth-child(3) { border-left: 0; }
  .tabela td:nth-child(1) { margin-bottom: 0.375rem; font-size: 1.3125rem; line-height: 1.3; }
  .tabela td:nth-child(n+2) {
    display: grid;
    grid-template-columns: 5.25rem 1fr;
    column-gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
  }
  .tabela td:nth-child(n+2)::before {
    content: attr(data-rotulo);
    color: var(--cinza-500);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6rem;
  }

  .pdf { gap: 1.125rem; padding: 1.25rem; }
  .pdf img { width: 4.25rem; }
  .botao-contorno { padding: 0.625rem 1rem; }

  .botao { display: block; }

  .exemplos li { display: block; }
  .exemplos strong { display: block; margin-bottom: 0.125rem; }
  .frase-en, .frase-pt { display: block; }

  .chamada { padding: 4.5rem 1.5rem; }
  .chamada::before { left: -30%; }
  .chamada .botao { display: inline-block; width: 100%; max-width: 22rem; padding: 0.875rem 1rem; }
}

/* A partir de 768px o header mostra os links, como o breakpoint md do app */
@media (min-width: 768px) {
  .topo-links, .topo-acoes { display: flex; }
  .topo-menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
