/* =========================================================
   Preparatório 3J — Área do Aluno
   Baseado em DESIGN (1).md (canvas branco, azul elétrico
   como único sinal, chevrons angulares, slabs escuros).
   ========================================================= */

:root {
  /* Marca */
  --primary: #024ad8;
  --primary-bright: #296ef9;
  --primary-deep: #0e3191;
  --primary-soft: #c9e0fc;
  --on-primary: #ffffff;

  /* Texto */
  --ink: #1a1a1a;
  --ink-soft: #292929;
  --charcoal: #3d3d3d;
  --graphite: #636363;

  /* Superfícies */
  --canvas: #ffffff;
  --cloud: #f7f7f7;
  --fog: #e8e8e8;
  --steel: #c2c2c2;
  --hairline: #e8e8e8;

  /* Slab escuro — navy tirado da faixa da logo 3J */
  --slab: #0a0f4a;
  --slab-soft: #141a5c;

  /* Acentos */
  --bloom-coral: #ff5050;
  --storm-deep: #356373;

  /* Tokens que mudam com o tema */
  --on-ink: #ffffff;          /* texto sobre fundo da cor do texto (chips ativos, botões escuros) */
  --ink-hover: #000000;
  --rodape: #1a1a1a;          /* faixa do topo e rodapé */
  --wash: #f2f7ff;            /* realce suave (arrastar arquivo) */
  --erro: #b3262b;
  --erro-bg: #fdecec;
  --seta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231a1a1a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --rodape-texto: #c2c2c2;     /* texto do rodapé (sempre sobre fundo escuro) */
  color-scheme: light;

  /* Raios */
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-xl: 16px;
  --r-pill: 9999px;

  /* Espaçamento */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 20px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-section: 80px;

  --shadow-soft: 0 2px 8px rgba(26, 26, 26, 0.08);
  --shadow-float: 0 8px 24px rgba(26, 26, 26, 0.12);

  --container: 1366px;
  --font: "Manrope", "Forma DJR Micro", Arial, sans-serif;
}

/* ---------- Temas (escolhidos pelo seletor "Cores") ---------- */
:root[data-tema="escuro"] {
  --primary: #4d8bff;
  --primary-bright: #6aa0ff;
  --primary-deep: #2f6df0;
  --primary-soft: #1c2f5c;
  --ink: #e9ecf2;
  --ink-soft: #d5d9e1;
  --charcoal: #c2c8d2;
  --graphite: #98a0ad;
  --canvas: #121418;
  --cloud: #191c22;
  --fog: #22262e;
  --steel: #4a515d;
  --hairline: #2a2f38;
  --slab: #0b1045;
  --slab-soft: #161d5c;
  --on-ink: #121418;
  --on-primary: #08122e;
  --ink-hover: #ffffff;
  --rodape: #0a0c10;
  --wash: #18233d;
  --erro: #ff8a8a;
  --erro-bg: #3a1517;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.55);
  --seta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23e9ecf2' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

:root[data-tema="conforto"] {
  --primary: #1f4fc4;
  --primary-deep: #133a99;
  --primary-soft: #dbe3f7;
  --ink: #2b2418;
  --ink-soft: #3a3124;
  --charcoal: #4a4033;
  --graphite: #6e6352;
  --canvas: #fbf6ec;
  --cloud: #f3ecdd;
  --fog: #e8dfcc;
  --steel: #cbbfa6;
  --hairline: #e6dcc6;
  --slab: #13204f;
  --slab-soft: #1d2b63;
  --on-ink: #fbf6ec;
  --ink-hover: #1a150d;
  --rodape: #2b2418;
  --wash: #eef1f8;
  --shadow-soft: 0 2px 8px rgba(60, 45, 20, 0.10);
  --shadow-float: 0 8px 24px rgba(60, 45, 20, 0.16);
  --seta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232b2418' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

:root[data-tema="contraste"] {
  --primary: #0033cc;
  --primary-bright: #0033cc;
  --primary-deep: #001a80;
  --primary-soft: #dbe5ff;
  --ink: #000000;
  --ink-soft: #000000;
  --charcoal: #000000;
  --graphite: #1a1a1a;
  --canvas: #ffffff;
  --cloud: #ffffff;
  --fog: #f0f0f0;
  --steel: #000000;
  --hairline: #000000;
  --slab: #000033;
  --slab-soft: #000055;
  --on-ink: #ffffff;
  --ink-hover: #333333;
  --rodape: #000000;
  --wash: #e6edff;
  --erro: #a00000;
  --shadow-soft: 0 0 0 2px #000000;
  --shadow-float: 0 0 0 2px #000000;
}
:root[data-tema="contraste"] a:not(.btn):not(.brand):not(.cat-card):not(.subj-card):not(.contato-item):not(.chip) { text-decoration: underline; }
:root[data-tema="contraste"] :focus-visible { outline: 3px solid #ff9900; outline-offset: 2px; }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:active { color: var(--primary-deep); }
h1, h2, h3, h4 { font-weight: 500; line-height: 1; margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-xxl);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Tipografia ---------- */
.display-xxl { font-size: 72px; font-weight: 500; line-height: 1; }
.display-xl  { font-size: 56px; font-weight: 500; line-height: 1; }
.display-lg  { font-size: 44px; font-weight: 500; line-height: 1; }
.display-md  { font-size: 32px; font-weight: 500; line-height: 1; }
.display-sm  { font-size: 24px; font-weight: 500; line-height: 1.17; }
.display-xs  { font-size: 20px; font-weight: 500; line-height: 1.15; }
.body-lg     { font-size: 18px; line-height: 1.4; }
.caption     { font-size: 14px; line-height: 1.5; }
.caption-sm  { font-size: 12px; line-height: 1.33; }
.muted       { color: var(--charcoal); }
.faint       { color: var(--graphite); }

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-xs);
  height: 44px;
  padding: var(--s-sm) var(--s-xl);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); color: var(--on-primary); }

.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-hover); color: var(--on-ink); }

.btn-outline { background: var(--canvas); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }

.btn-outline-ink { background: var(--canvas); color: var(--ink); border-color: var(--ink); }
.btn-outline-ink:hover { background: var(--cloud); }

.btn-on-dark { background: var(--primary-bright); color: var(--on-primary); }
.btn-on-dark:hover { background: var(--primary); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-text { background: transparent; color: var(--primary); padding-left: 8px; padding-right: 8px; }
.btn-text:hover { background: var(--cloud); }

.btn-sm { height: 36px; padding: 8px 16px; font-size: 12.6px; font-weight: 700; letter-spacing: 0.4px; }

.link {
  font-weight: 500;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.badge-ink { background: var(--ink); color: var(--on-ink); }
.badge-outline { background: var(--canvas); color: var(--ink); border: 1px solid var(--ink); }
.badge-soft { background: var(--primary-soft); color: var(--primary-deep); }
.badge-new {
  background: var(--bloom-coral); color: #fff;
  border-radius: var(--r-sm); padding: 3px 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
}

/* ---------- Faixa utilitária ---------- */
.utility-strip {
  background: var(--rodape);
  color: #fff;
  font-size: 14px;
}
.utility-strip .container {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
}
.utility-strip a { color: #fff; }
.utility-strip a:hover { text-decoration: underline; }
.utility-strip .u-right { display: flex; gap: var(--s-xl); }

/* ---------- Navegação ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.nav .container {
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--s-xl);
}

/* Recorte da logo: mostra só a faixa do wordmark */
/* Logo oficial em versão horizontal (recorte feito no arquivo, não no CSS) */
.brand {
  flex: none;
  display: block;
  height: 60px;
  aspect-ratio: 360 / 182;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0a0f4a;
}
.brand img { display: block; width: 100%; height: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: var(--s-xs) var(--s-md);
  color: var(--ink);
  font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--s-md); right: var(--s-md); bottom: 6px;
  height: 2px;
  background: var(--primary);
}

.nav-search {
  margin-left: auto;
  position: relative;
  width: 300px;
}
.nav-search input,
.field {
  width: 100%;
  height: 40px;
  padding: var(--s-sm) 40px var(--s-sm) var(--s-md);
  border: 1px solid var(--steel);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--canvas);
}
.nav-search input:focus,
.field:focus { outline: none; border-color: var(--ink); }
.nav-search button {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
}
.nav-search svg { width: 18px; height: 18px; }

/* Seletor de cores */
.tema-seletor { position: relative; flex: none; }
.nav .tema-seletor { margin-left: auto; }
.nav .tema-seletor ~ .nav-user,
.nav .tema-seletor ~ .nav-toggle { margin-left: 0; }
.tema-botao {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--canvas);
  color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.tema-botao:hover { border-color: var(--ink); }
.tema-botao svg { width: 18px; height: 18px; color: var(--primary); }
.tema-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 290px;
  padding: 8px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
}
.tema-menu-titulo { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--graphite); padding: 6px 8px 8px; }
.tema-opcao {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border: 0; border-radius: var(--r-md);
  background: none; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
}
.tema-opcao:hover, .tema-opcao:focus-visible { background: var(--cloud); }
.tema-opcao strong { display: block; font-size: 15px; font-weight: 600; }
.tema-opcao small { display: block; font-size: 12px; color: var(--graphite); }
.tema-amostra { display: flex; flex: none; border-radius: var(--r-pill); overflow: hidden; border: 1px solid var(--steel); }
.tema-amostra i { width: 12px; height: 24px; }
.tema-check { margin-left: auto; width: 18px; height: 18px; color: var(--primary); visibility: hidden; }
.tema-check svg { width: 18px; height: 18px; }
.tema-opcao[aria-checked="true"] .tema-check { visibility: visible; }
.tema-opcao[aria-checked="true"] strong { color: var(--primary); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 var(--s-section);
  overflow: hidden;
}
.hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
}
.hero-copy .eyebrow { margin-bottom: var(--s-md); color: var(--primary); }
.hero-copy h1 { margin-bottom: var(--s-xl); }
.hero-copy .body-lg { color: var(--charcoal); max-width: 520px; margin-bottom: var(--s-xxl); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); }

.hero-stats {
  display: flex;
  gap: var(--s-xxl);
  margin-top: 40px;
  padding-top: var(--s-xl);
  border-top: 1px solid var(--hairline);
}
.hero-stats strong { display: block; font-size: 32px; font-weight: 500; line-height: 1; margin-bottom: 6px; }
.hero-stats span { font-size: 14px; color: var(--graphite); }

.hero-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: end;
  width: 100%;
}
.hero-media img,
.hero-media svg { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Chevrons — eco da faixa diagonal da logo */
.chevron {
  position: absolute;
  z-index: 0;
  width: 120px;
  height: 78%;
  background: var(--primary);
  transform: skewX(-24deg);
}
.chevron-left  { left: -40px;  top: 14%; }
.chevron-left.two { left: 70px; top: 22%; width: 26px; background: var(--primary-deep); }
.chevron-right { right: -50px; top: 6%; }
.chevron-right.two { right: 88px; top: 0; width: 26px; height: 60%; background: var(--primary-deep); }

/* ---------- Seções ---------- */
.section { padding: var(--s-section) 0; }
.section-cloud { background: var(--cloud); }
.section-fog { background: var(--fog); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-xl);
  margin-bottom: 40px;
}
.section-head .eyebrow { margin-bottom: var(--s-sm); }
.section-head p { margin-top: var(--s-sm); color: var(--charcoal); max-width: 560px; }

/* ---------- Cards de categoria (Aulas / Exercícios / Redações) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-xl);
}
.cat-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-xxl);
  background: var(--canvas);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.cat-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--r-lg);
  background: var(--primary-soft);
  color: var(--primary-deep);
  margin-bottom: var(--s-xl);
}
.cat-icon svg { width: 28px; height: 28px; }
.cat-card h3 { margin-bottom: var(--s-sm); }
.cat-card p { color: var(--charcoal); margin-bottom: var(--s-xl); flex: 1; }
.cat-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s-md);
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}
.cat-foot .count { color: var(--graphite); }
.cat-foot .go { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.cat-foot .go svg { width: 16px; height: 16px; }

/* ---------- Cards de material ---------- */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-xl);
}
.mat-card {
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.mat-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: var(--s-md);
  background: var(--slab);
  color: #fff;
  overflow: hidden;
}
.mat-thumb::before,
.mat-thumb::after {
  content: "";
  position: absolute;
  top: -20%;
  height: 140%;
  transform: skewX(-24deg);
}
.mat-thumb::before { right: 18%; width: 34px; background: var(--primary); }
.mat-thumb::after  { right: 6%;  width: 12px; background: var(--primary-bright); }
.mat-thumb[data-tipo="exercicio"] { background: #10155e; }
.mat-thumb[data-tipo="redacao"]   { background: #1a1a1a; }
.mat-thumb .thumb-label {
  position: relative; z-index: 1;
  font-size: 22px; font-weight: 600; line-height: 1.05;
  max-width: 70%;
}
.mat-thumb .thumb-icon {
  position: absolute; z-index: 1; top: var(--s-md); left: var(--s-md);
  width: 28px; height: 28px; opacity: .85;
}
.mat-thumb .badge-new { position: absolute; z-index: 1; top: var(--s-md); right: var(--s-md); }

.mat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--s-md) var(--s-md) var(--s-lg);
}
.mat-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 12px; color: var(--graphite);
  margin-bottom: var(--s-xs);
}
.mat-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--steel); }
.mat-body h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: var(--s-xs); }
.mat-body p { font-size: 14px; line-height: 1.5; color: var(--charcoal); margin-bottom: var(--s-md); flex: 1; }
.mat-actions { display: flex; flex-wrap: wrap; gap: var(--s-xs); }

/* ---------- Slab escuro (tema de redação) ---------- */
.promo-dark {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 48px;
  border-radius: var(--r-xl);
  background: var(--slab);
  color: #fff;
}
.promo-dark .eyebrow { color: #9fb8ff; margin-bottom: var(--s-md); }
.promo-dark h2 { margin-bottom: var(--s-lg); }
.promo-dark p { color: rgba(255,255,255,.82); margin-bottom: var(--s-xxl); max-width: 560px; }
.promo-dark .actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.promo-panel {
  position: relative; z-index: 1;
  background: var(--slab-soft);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
}
.promo-panel h4 { font-size: 14px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: #9fb8ff; margin-bottom: var(--s-md); }
.promo-panel ol { margin: 0; padding-left: 20px; display: grid; gap: var(--s-sm); color: rgba(255,255,255,.9); font-size: 15px; }
.promo-dark .chevron { width: 70px; height: 140%; top: -20%; }
.promo-dark .chevron-a { right: 36%; background: var(--primary); opacity: .55; }
.promo-dark .chevron-b { right: calc(36% - 50px); width: 18px; background: var(--primary-bright); opacity: .5; }

/* ---------- Quem somos ---------- */
.quem-somos {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: start;
}
.quem-somos-texto .eyebrow { margin-bottom: var(--s-sm); }
.quem-somos-texto h2 { margin-bottom: var(--s-xl); }
.quem-somos-texto p { font-size: 17px; line-height: 1.65; color: var(--charcoal); max-width: 640px; }
.quem-somos-texto p + p { margin-top: var(--s-md); }
.quem-somos-texto strong { color: var(--ink); font-weight: 600; }
.assinatura {
  margin-top: var(--s-xl);
  padding-left: var(--s-md);
  border-left: 3px solid var(--primary);
}
.assinatura-nome { display: block; font-size: 18px; font-weight: 700; color: var(--ink); }
.assinatura-cargo { display: block; font-size: 14px; color: var(--charcoal); margin-top: 2px; }
.aprovacoes { display: flex; flex-wrap: wrap; gap: var(--s-xs); margin-top: var(--s-xl); }
.aprovacoes .badge { font-weight: 700; letter-spacing: .4px; padding: 6px 14px; }

.linha-tempo {
  list-style: none;
  margin: 0;
  padding: var(--s-xxl);
  background: var(--canvas);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
}
.linha-tempo li {
  position: relative;
  padding: 0 0 var(--s-xl) 32px;
}
.linha-tempo li:last-child { padding-bottom: 0; }
.linha-tempo li::before {                 /* marcador */
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.linha-tempo li:not(:last-child)::after { /* linha que liga os marcadores */
  content: "";
  position: absolute; left: 6px; top: 24px; bottom: 4px;
  width: 2px;
  background: var(--hairline);
}
.linha-tempo .quando {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.linha-tempo strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.linha-tempo p { font-size: 15px; line-height: 1.5; color: var(--charcoal); }

/* ---------- Matérias ---------- */
.subj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-md);
}
.subj-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-md);
  padding: var(--s-md) var(--s-md) var(--s-lg);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  color: var(--ink);
  font-weight: 500;
  transition: border-color .15s ease;
}
.subj-card:hover { border-color: var(--ink); }
.subj-card .ic {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--cloud); color: var(--primary);
}
.subj-card .ic svg { width: 24px; height: 24px; }
.subj-card small { display: block; font-weight: 400; font-size: 13px; color: var(--graphite); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq-list {
  background: var(--canvas);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}
.faq-item + .faq-item { border-top: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
  padding: var(--s-lg) var(--s-xl);
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; flex: none; transition: transform .2s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item .answer { padding: 0 var(--s-xl) var(--s-lg); color: var(--charcoal); }

/* ---------- Banda "Como podemos ajudar?" ---------- */
.help-band {
  position: relative;
  overflow: hidden;
  background: var(--slab);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.help-band h2 { margin-bottom: var(--s-md); }
.help-band p { color: rgba(255,255,255,.8); margin-bottom: var(--s-xxl); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-sm); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-xs);
  min-height: 44px;
  padding: var(--s-xs) var(--s-lg);
  border-radius: var(--r-pill);
  background: var(--canvas);
  color: var(--ink);
  font-weight: 500;
  border: 1px solid var(--hairline);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}
.chip svg { width: 18px; height: 18px; }
.chip:hover { background: var(--cloud); }
.chip[aria-pressed="true"],
.chip.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.help-band .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.help-band .chip:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--rodape);
  color: #fff;
  padding: 64px 0 var(--s-xxl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-xxl);
  padding-bottom: 48px;
  border-bottom: 1px solid #333;
}
.footer .brand { margin-bottom: var(--s-lg); }
.footer p { color: var(--rodape-texto); font-size: 14px; max-width: 320px; }
.footer h4 { font-size: 16px; font-weight: 500; margin-bottom: var(--s-md); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--rodape-texto); font-size: 14px; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: var(--s-md); flex-wrap: wrap;
  padding-top: var(--s-xl);
  font-size: 12px; color: var(--rodape-texto);
}

/* ---------- Biblioteca ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--slab);
  color: #fff;
  padding: 56px 0;
}
.page-head .container { position: relative; z-index: 1; }
.page-head .eyebrow { color: #9fb8ff; margin-bottom: var(--s-md); }
.page-head p { color: rgba(255,255,255,.82); margin-top: var(--s-md); max-width: 620px; }
.page-head .chevron { height: 160%; top: -30%; width: 90px; }
.page-head .chevron-a { right: 12%; background: var(--primary); }
.page-head .chevron-b { right: calc(12% + 110px); width: 22px; background: var(--primary-bright); }

.toolbar {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.toolbar .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-md);
  padding-top: var(--s-md);
  padding-bottom: var(--s-md);
}
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-xs); }
.tabs .chip { min-height: 40px; padding: 8px 20px; }
.tabs .chip .n { font-size: 13px; color: var(--graphite); }
.tabs .chip.active .n { color: var(--on-ink); opacity: .7; }

.filters { display: flex; gap: var(--s-sm); margin-left: auto; flex-wrap: wrap; }
.filters .field { width: 260px; }
.filters select.field {
  width: 200px;
  padding-right: 36px;
  appearance: none;
  background-image: var(--seta);
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; }

.results-info {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
  margin-bottom: var(--s-xl);
  font-size: 14px; color: var(--graphite);
}
.results-info button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px var(--s-xl);
  background: var(--canvas);
  border: 1px dashed var(--steel);
  border-radius: var(--r-xl);
}
.empty svg { width: 40px; height: 40px; color: var(--graphite); margin: 0 auto var(--s-md); }
.empty h3 { margin-bottom: var(--s-xs); }
.empty p { color: var(--charcoal); margin-bottom: var(--s-xl); }

/* ---------- Modal de detalhes ---------- */
.modal {
  border: 0;
  padding: 0;
  width: min(640px, calc(100% - 32px));
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  color: var(--ink);
  background: var(--canvas);
}
.modal::backdrop { background: rgba(10, 15, 74, .55); }
.modal .mat-thumb { aspect-ratio: auto; min-height: 160px; }
.modal-body { padding: var(--s-xxl); }
.modal-body h2 { margin: var(--s-xs) 0 var(--s-md); }
.modal-body .desc { color: var(--charcoal); margin-bottom: var(--s-xl); }
.modal-close {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: var(--r-md);
  border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.modal-close svg { width: 20px; height: 20px; }
.spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s-xl);
}
.spec div { background: var(--canvas); padding: var(--s-sm) var(--s-md); }
.spec dt { font-size: 12px; color: var(--graphite); margin-bottom: 2px; }
.spec dd { margin: 0; font-weight: 500; font-size: 15px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px);
  background: var(--ink); color: var(--on-ink);
  padding: var(--s-sm) var(--s-xl); border-radius: var(--r-md);
  font-size: 14px; box-shadow: var(--shadow-float);
  transition: transform .25s ease; z-index: 100;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast.erro { background: var(--erro); color: #fff; }

/* ---------- Área restrita ---------- */
[hidden] { display: none !important; }

.nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}
.user-chip {
  display: flex; align-items: center; gap: var(--s-sm);
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 14px;
  line-height: 1.2;
}
.user-chip .avatar {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--slab); color: #fff;
  font-weight: 700; font-size: 13px;
}
.user-chip small { display: block; color: var(--graphite); font-size: 12px; }

.estado {
  max-width: 560px;
  margin: 80px auto;
  padding: 48px var(--s-xxl);
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
}
.estado .ic {
  width: 56px; height: 56px; margin: 0 auto var(--s-xl);
  display: grid; place-items: center;
  border-radius: var(--r-lg);
  background: var(--primary-soft); color: var(--primary-deep);
}
.estado .ic svg { width: 28px; height: 28px; }
.estado h1 { margin-bottom: var(--s-md); }
.estado p { color: var(--charcoal); margin-bottom: var(--s-xl); }
.estado code { background: var(--cloud); padding: 2px 6px; border-radius: var(--r-sm); font-size: 15px; }

.botao-google { display: flex; justify-content: center; min-height: 44px; }

.spinner {
  width: 32px; height: 32px; margin: 0 auto var(--s-md);
  border: 3px solid var(--fog); border-top-color: var(--primary);
  border-radius: 50%;
  animation: gira .8s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

/* Formulários */
.form-card {
  background: var(--canvas);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  padding: var(--s-xxl);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl); }
.form-grid .full { grid-column: 1 / -1; }
.campo label, .campo .rotulo {
  display: block;
  font-weight: 600; font-size: 14px;
  margin-bottom: var(--s-xs);
}
.campo .dica { font-size: 13px; color: var(--graphite); margin-top: 6px; }
.campo .opcional { font-weight: 400; color: var(--graphite); }
.field-lg { height: 44px; padding-right: var(--s-md); }
textarea.field { height: auto; min-height: 110px; resize: vertical; line-height: 1.5; padding-right: var(--s-md); }
select.field {
  padding-right: 36px;
  appearance: none;
  background-image: var(--seta);
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.radio-chips { display: flex; flex-wrap: wrap; gap: var(--s-xs); }
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chips label { margin: 0; font-weight: 500; font-size: 15px; }
.radio-chips input:checked + .chip { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.radio-chips input:focus-visible + .chip { outline: 2px solid var(--primary); outline-offset: 2px; }

.dropzone {
  position: relative;
  display: flex; align-items: center; gap: var(--s-md);
  padding: var(--s-lg);
  border: 1px dashed var(--steel);
  border-radius: var(--r-lg);
  background: var(--cloud);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.dropzone:hover, .dropzone.sobre { border-color: var(--primary); background: var(--wash); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); background: var(--canvas); color: var(--primary); }
.dropzone .ic svg { width: 22px; height: 22px; }
.dropzone strong { display: block; font-weight: 600; word-break: break-all; }
.dropzone span { font-size: 13px; color: var(--graphite); }
.dropzone.tem-arquivo { border-style: solid; border-color: var(--ink); background: var(--canvas); }

.form-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-sm);
  margin-top: var(--s-xxl); padding-top: var(--s-xl);
  border-top: 1px solid var(--hairline);
}
.progresso { flex: 1; min-width: 160px; height: 6px; background: var(--fog); border-radius: var(--r-pill); overflow: hidden; }
.progresso div { height: 100%; width: 0; background: var(--primary); transition: width .2s ease; }
.form-erro {
  margin-top: var(--s-lg);
  padding: var(--s-sm) var(--s-md);
  border-radius: var(--r-md);
  background: var(--erro-bg); color: var(--erro);
  font-size: 14px;
}

.layout-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-xl); align-items: start; }
.layout-2 > * { min-width: 0; }
.aside-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
}
.aside-card h3 { margin-bottom: var(--s-md); }
.aside-card ul { margin: 0; padding-left: 18px; display: grid; gap: var(--s-xs); color: var(--charcoal); font-size: 14px; }

/* Tabela da equipe */
.tabela-wrap { background: var(--canvas); border-radius: var(--r-xl); box-shadow: var(--shadow-soft); overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--graphite); padding: var(--s-md) var(--s-xl); border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.tabela td { padding: var(--s-md) var(--s-xl); border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .pessoa strong { display: block; font-weight: 600; }
.tabela .pessoa span { font-size: 13px; color: var(--graphite); word-break: break-all; }
.tabela select.field { height: 36px; width: 150px; padding: 0 36px 0 12px; font-size: 14px; }
.tabela tr.inativo td { color: var(--graphite); background: var(--cloud); }
.tabela .acoes { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap; }

.btn-perigo { background: var(--canvas); color: var(--erro); border-color: var(--erro); }
.btn-perigo:hover { background: var(--erro-bg); }
.btn-perigo-cheio { background: var(--erro); color: #fff; }
.btn-perigo-cheio:hover { background: #8f1d21; }

.confirmar { width: min(460px, calc(100% - 32px)); }
.confirmar .modal-body h2 { margin: 0 0 var(--s-sm); }
.confirmar .modal-body p { color: var(--charcoal); margin-bottom: var(--s-xl); }

/* Página pública */
.contato-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-md); }
.contato-item {
  display: flex; gap: var(--s-md); align-items: flex-start;
  padding: var(--s-lg);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  color: var(--ink);
}
.contato-item .ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); background: var(--cloud); color: var(--primary); }
.contato-item .ic svg { width: 20px; height: 20px; }
.contato-item small { display: block; color: var(--graphite); font-size: 13px; margin-bottom: 2px; }
.contato-item strong { font-weight: 500; word-break: break-word; }
a.contato-item:hover { border-color: var(--ink); }
.subj-card.estatico:hover { border-color: var(--hairline); }

/* ---------- Responsivo ---------- */
@media (max-width: 1279px) {
  .mat-grid { grid-template-columns: repeat(3, 1fr); }
  .subj-grid { grid-template-columns: repeat(3, 1fr); }
  .display-xxl { font-size: 60px; }
}

@media (max-width: 1023px) {
  .container { padding: 0 var(--s-xl); }
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-float);
    padding: var(--s-xs) var(--s-md) var(--s-md);
  }
  .nav.open .nav-links a { font-size: 18px; height: 52px; }
  .nav.open .nav-links a[aria-current="page"]::after { left: var(--s-md); right: auto; width: 32px; bottom: 8px; }
  .nav.open .nav-search {
    display: block;
    position: absolute; top: calc(72px + 4 * 52px + 16px); left: var(--s-xl); right: var(--s-xl);
    width: auto;
  }

  .hero-card { grid-template-columns: 1fr; padding: var(--s-xxl); }
  .hero-media { justify-self: start; max-width: 420px; order: -1; }
  .chevron-left, .chevron-right { transform: skewX(-24deg) scale(.6); }
  .display-xxl { font-size: 48px; }
  .display-xl { font-size: 44px; }
  .cat-grid { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-dark { grid-template-columns: 1fr; padding: 40px var(--s-xxl); }
  .faq-wrap { grid-template-columns: 1fr; gap: var(--s-xxl); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-2 { grid-template-columns: 1fr; }
  .quem-somos { grid-template-columns: minmax(0, 1fr); gap: var(--s-xxl); }
  .nav-user .user-chip div { display: none; }
  .nav-user .user-chip { padding: 4px; }
  .filters { margin-left: 0; width: 100%; }
  .filters .field, .filters select.field { flex: 1; width: auto; min-width: 0; }
  .search-wrap { flex: 1; }
  .search-wrap .field { width: 100%; }
}

@media (max-width: 767px) {
  .container { padding: 0 var(--s-md); }
  .utility-strip .u-right a:not(:last-child) { display: none; }
  .section { padding: 48px 0; }
  .hero { padding: var(--s-xl) 0 48px; }
  .hero-card { padding: var(--s-xl); gap: var(--s-xxl); }
  .chevron-left, .chevron-right { display: none; }
  .display-xxl { font-size: clamp(28px, 8.4vw, 38px); line-height: 1.05; }
  .display-xl, .display-lg { font-size: 32px; line-height: 1.05; }
  .display-md { font-size: 28px; line-height: 1.1; }
  .hero-stats { gap: var(--s-xl); }
  .hero-stats strong { font-size: 26px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .mat-grid { grid-template-columns: 1fr; }
  .subj-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-dark { padding: var(--s-xxl) var(--s-xl); }
  .footer-grid { grid-template-columns: 1fr; }
  .toolbar { position: static; }
  .filters { flex-direction: column; }
  .modal-body { padding: var(--s-xl); }
  .form-card { padding: var(--s-xl); }
  .tabela th:nth-child(3), .tabela td:nth-child(3) { display: none; }
  .tabela th, .tabela td { padding-left: var(--s-md); padding-right: var(--s-md); }
  .tabela select.field { width: 128px; }
  .form-grid { grid-template-columns: 1fr; }
  .estado { margin: 40px auto; padding: var(--s-xxl) var(--s-xl); }
  .nav-user .btn-sair span.txt { display: none; }
  .tema-botao-txt { display: none; }
  .hero-card { grid-template-columns: minmax(0, 1fr); padding: var(--s-lg); }
  .linha-tempo { padding: var(--s-xl) var(--s-lg); }
  .quem-somos-texto p { font-size: 16px; }
  .nav-user { gap: 8px; }
  .hero-copy h1 { overflow-wrap: break-word; }
  .btn-equipe .txt { display: none; }
  .btn-equipe { width: 40px; height: 40px; padding: 0; }
  .tema-botao { padding: 0 10px; }
  .brand { height: 48px; }
  .nav .container { gap: var(--s-sm); }
  .tema-menu { position: fixed; left: 16px; right: 16px; top: 120px; width: auto; }
}

@media (max-width: 400px) {
  .nav .container { gap: 8px; }
}
