/*
  EDITe — www.edite.app
  Spec: docs/features/landing-page/. Referência visual: protótipo "EDITe Landing.dc.html"
  (Claude Design, versão preto e branco). As medidas vêm dos estilos inline do protótipo,
  que usa o box-sizing padrão (content-box). Por isso não há border-box global aqui.
  Celular: largura < 760 px (mesmo corte do protótipo).
*/

/* ---- Fontes (servidas pelo próprio site; licença OFL ao lado dos arquivos) ---- */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/geist-latin-wght-v5.woff2') format('woff2');
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/caveat-500-latin-v23.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* altura do cabeçalho fixo */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #FFFFFF;
  color: #0A0A0A;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
a:hover { color: #0A0A0A; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0A0A0A;
  font-weight: 500;
}
.btn:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 2px; }

.btn--sm { height: 44px; padding: 0 16px; border-radius: 10px; font-size: 15px; }
.btn--lg { height: 52px; padding: 0 18px; border-radius: 12px; font-size: 16px; }
.btn--bar { display: flex; justify-content: center; height: 48px; border-radius: 12px; font-size: 16px; }

.btn--primary {
  justify-content: center;
  background: #171717;
  color: #FFFFFF;
  border: 1px solid #171717;
  font-weight: 600;
  transition: filter .15s;
}
.btn--primary:hover { filter: brightness(.9); color: #FFFFFF; }
.btn--primary:focus-visible { outline-width: 3px; }
.btn--sm.btn--primary { padding: 0 18px; }
.btn--lg.btn--primary { padding: 0 26px; }

.btn--ghost:hover { background: #F5F5F5; }

.btn--outline { border: 1px solid #E5E5E5; }
.btn--outline:hover { background: #F5F5F5; }

.btn--outline-strong { border: 1px solid #D4D4D4; background: #FFFFFF; }
.btn--outline-strong:hover { background: #FAFAFA; }

.btn--light {
  justify-content: center;
  background: #FFFFFF;
  color: #0A0A0A;
  font-weight: 600;
  transition: filter .15s;
}
.btn--lg.btn--light { padding: 0 26px; }
.btn--light:hover { filter: brightness(.9); color: #0A0A0A; }
.btn--light:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.microcopy { margin: 0; font-size: 14px; color: #737373; }

/* ---- Cabeçalho ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled {
  border-bottom-color: #E5E5E5;
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, .12);
}
.site-header__inner { height: 64px; display: flex; align-items: center; gap: 32px; }

.brand { display: flex; align-items: center; text-decoration: none; color: #0A0A0A; border-radius: 6px; }
.brand img { display: block; width: 90px; height: 44px; }
.brand:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 2px; }

.site-nav { display: flex; gap: 4px; margin-right: auto; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #525252;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { background: #F5F5F5; color: #0A0A0A; }
.site-nav a:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 2px; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

/* ---- Mockups: peças comuns ---- */

.mock-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -12px rgba(0, 0, 0, .12);
}

.meter { border-radius: 99px; background: #F5F5F5; overflow: hidden; }
.meter__fill { height: 100%; background: #171717; transition: width .6s cubic-bezier(.2, .7, .2, 1); }

/* Larguras iniciais por atributo: nada de style inline (CSP). O main.js atualiza via CSSOM. */
.meter__fill[data-pct="8"] { width: 8%; }
.meter__fill[data-pct="13"] { width: 13%; }
.meter__fill[data-pct="20"] { width: 20%; }
.meter__fill[data-pct="21"] { width: 21%; }
.meter__fill[data-pct="23"] { width: 23%; }
.meter__fill[data-pct="25"] { width: 25%; }
.meter__fill[data-pct="35"] { width: 35%; }
.meter__fill[data-pct="40"] { width: 40%; }
.meter__fill[data-pct="48"] { width: 48%; }
.meter__fill[data-pct="62"] { width: 62%; }

/* Estágios de estudo: Teoria, Revisão, Questões */
.stage--t, .box--t { --stage: #7F22FE; }
.stage--r, .box--r { --stage: #E17100; }
.stage--q, .box--q { --stage: #009966; }

/* ---- Hero ---- */

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}
.hero__lead {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: #525252;
  text-wrap: pretty;
  max-width: 52ch;
}
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.hero__mock { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.progress-card { padding: 20px 22px; }
.progress-card__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.progress-card__stats {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.progress-card__pct {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.progress-card__note { font-size: 13px; color: #737373; font-variant-numeric: tabular-nums; }
.progress-card__note--marks { margin-top: 6px; }

.meter--overall { height: 8px; margin-top: 14px; }
.meter--overall .meter__fill { border-radius: 99px; }

.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.stage { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stage__head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.stage__dot { width: 8px; height: 8px; border-radius: 99px; background: var(--stage); flex: none; }
.stage__name { font-weight: 500; }
.stage__count { margin-left: auto; color: #737373; font-variant-numeric: tabular-nums; }
.meter--stage { height: 5px; }
.meter--stage .meter__fill { border-radius: 99px; background: var(--stage); }

.disc-card { overflow: hidden; }
.disc-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #E5E5E5;
}
.disc-card__title { font-weight: 600; font-size: 14px; letter-spacing: 0.01em; }
.disc-card__meta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.meter--disc { width: 72px; height: 5px; }
.disc-card__pct {
  font-size: 12.5px;
  color: #525252;
  width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.topics-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 68px 68px;
  padding: 9px 18px;
  font-size: 12px;
  color: #737373;
  font-weight: 500;
  background: #FAFAFA;
  border-bottom: 1px solid #E5E5E5;
}
.topics-head span + span { text-align: center; }

.topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 68px 68px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid #F0F0F0;
  font-size: 13.5px;
}
.topic__name { color: #0A0A0A; line-height: 1.35; }
.topic--sub .topic__name { padding-left: 22px; }
.topic__cell { display: flex; justify-content: center; }
.topic__label { display: none; }

.box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #D4D4D4;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, border-color .25s, transform .25s;
}
.box svg { opacity: 0; transition: opacity .2s; }
.box.is-on { background: var(--stage); border-color: var(--stage); }
.box.is-on svg { opacity: 1; }
.box.is-pop { transform: scale(1.15); }

/* ---- Problema e proposta ---- */

.problem { padding: clamp(56px, 7vw, 96px) 0; background: #F5F5F5; }
.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
}
.problem h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.problem p {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: #404040;
  text-wrap: pretty;
  max-width: 60ch;
}

/* ---- Seções de recurso (editais, cadernos, comunidade, como começar) ---- */

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--surface { background: #F5F5F5; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.feature-copy { display: flex; flex-direction: column; gap: 20px; max-width: 540px; }
.feature-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.feature-lead { margin: 0; font-size: 18px; line-height: 1.6; color: #525252; text-wrap: pretty; }

/* Edital verticalizado */

.facts { margin: 12px 0 0; display: flex; flex-direction: column; gap: 18px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid #E5E5E5; }
.fact dt { font-weight: 600; }
.fact dd { margin: 0; color: #525252; }
.fact--steps { gap: 10px; }
.fact--steps dd { color: inherit; }

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 6px;
  border: 1px solid #E5E5E5;
  border-radius: 99px;
  font-size: 13.5px;
  color: #404040;
}
.steps__n {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  background: #F5F5F5;
  color: #0A0A0A;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edital-mock {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 14px;
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -12px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.edital-mock__head { display: flex; flex-direction: column; gap: 2px; }
.edital-mock__title { font-weight: 600; font-size: 15px; }
.edital-mock__sub { font-size: 13px; color: #737373; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid #E5E5E5; font-size: 13px; font-weight: 500; }
.chip--active { border: 0; background: #171717; color: #FFFFFF; }

.subjects { border: 1px solid #E5E5E5; border-radius: 12px; overflow: hidden; }
.subject {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #F0F0F0;
}
.subject__name { font-weight: 500; font-size: 13.5px; min-width: 0; flex: 1; letter-spacing: 0.01em; }
.meter--subject { width: clamp(56px, 8vw, 96px); height: 5px; flex: none; }
.subject__pct {
  font-size: 12.5px;
  color: #525252;
  width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.subject svg { flex: none; }

/* Caderno digital */

.checklist { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.checklist li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid #E0E0E0; }
.checklist li:last-child { border-bottom: 1px solid #E0E0E0; }
.checklist svg { flex: none; margin-top: 3px; }

.notebook-mock {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -12px rgba(0, 0, 0, .12);
  min-width: 0;
  order: -1; /* no desktop o mockup fica à esquerda; no HTML ele vem depois do texto */
}

.nb-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #E5E5E5;
  font-size: 13px;
}
.nb-top__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-top__status { color: #737373; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.nb-top__dot { width: 9px; height: 9px; border-radius: 99px; border: 1.5px solid #A3A3A3; }

.nb-body { display: flex; min-height: 380px; }

.nb-side {
  width: 190px;
  flex: none;
  border-right: 1px solid #E5E5E5;
  padding: 12px 10px;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nb-side__title { font-weight: 600; font-size: 14px; padding: 0 6px 8px; }
.nb-item { display: flex; align-items: center; gap: 6px; padding: 5px 6px; }
.nb-item--disc { font-weight: 500; }
.nb-item--topic { padding-left: 18px; }
.nb-item--page { padding-left: 34px; color: #525252; }
.nb-item--current { background: #F5F5F5; border-radius: 6px; color: inherit; }

.nb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nb-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid #E5E5E5;
  overflow: hidden;
}
.nb-tool { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex: none; }
.nb-tool--active { border-radius: 7px; background: #171717; color: #FFFFFF; }
.nb-tools__sep { width: 1px; height: 18px; background: #E5E5E5; margin: 0 4px; flex: none; }
.nb-tools__zoom { margin-left: auto; font-size: 12px; color: #525252; flex: none; padding-right: 4px; }

.nb-canvas {
  flex: 1;
  background: #EBEBEB;
  padding: clamp(14px, 2vw, 22px);
  display: flex;
  justify-content: center;
}
.nb-sheet {
  position: relative;
  background: #FFFFFF;
  width: 100%;
  max-width: 400px;
  padding: 26px 26px 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  font-family: Georgia, 'Times New Roman', serif;
  color: #262626;
  font-size: 13px;
  line-height: 1.7;
}
.nb-sheet__file { font-family: 'Geist', sans-serif; font-size: 10px; color: #A3A3A3; margin-bottom: 12px; }
.nb-sheet__chapter { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.nb-sheet__section { font-weight: 700; margin-bottom: 6px; }
.nb-sheet p { margin: 0 0 10px; }
.nb-sheet p:last-of-type { margin: 0; }

.nb-circle { position: relative; display: inline-block; padding: 0 3px; }
.nb-circle::before {
  content: '';
  position: absolute;
  inset: -4px -5px -3px -6px;
  border: 2px solid #DC2626;
  border-radius: 50%;
  transform: rotate(-3deg);
}
.nb-highlight {
  background: linear-gradient(transparent 18%, rgba(250, 204, 21, .55) 18%, rgba(250, 204, 21, .55) 88%, transparent 88%);
}
.nb-note {
  position: absolute;
  right: 14px;
  bottom: 4px;
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: 21px;
  color: #1D4ED8;
  transform: rotate(-4deg);
  line-height: 1;
}

/* Comunidade e materiais */

.community { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.community__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(16px, 4vw, 64px);
  align-items: end;
}
.community__intro { display: flex; flex-direction: column; gap: 20px; }
.community__lead { max-width: 52ch; }
.community__aside { margin: 0; font-size: 15px; line-height: 1.65; color: #525252; max-width: 52ch; }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.book {
  border: 1px solid #E5E5E5;
  border-radius: 14px;
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FFFFFF;
}
.book__cover {
  height: clamp(200px, 20vw, 260px);
  border-radius: 8px;
  padding: 18px 18px 18px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.book__cover::before { /* lombada */
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: rgba(0, 0, 0, .18);
}
.book__cover-title { font-family: Georgia, serif; font-size: 22px; line-height: 1.15; font-weight: 700; text-wrap: balance; }
.book__cover-sub { font-size: 11px; opacity: .85; }
.book__info { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.book__title { font-weight: 600; line-height: 1.3; }
.book__author { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #525252; }
.book__avatar {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book__rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #525252; }
.book__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.book__price { font-weight: 700; font-size: 17px; }
.book__cat { font-size: 11px; padding: 3px 8px; border: 1px solid #E5E5E5; border-radius: 6px; color: #404040; }

.book--1 .book__cover { background: #0F3D3E; color: #F5F5F4; }
.book--1 .book__avatar { background: #0F766E; }
.book--2 .book__cover { background: #F1E7D3; color: #1C1917; }
.book--2 .book__avatar { background: #7C2D12; }
.book--3 .book__cover { background: #2E2A4F; color: #F5F5F4; }
.book--3 .book__avatar { background: #3730A3; }

/* Como começar */

.start { padding: clamp(64px, 8vw, 112px) 0; background: #F5F5F5; }
.start__inner { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.start__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.start__step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid #0A0A0A; }
.start__n {
  width: 34px;
  height: 34px;
  border-radius: 99px;
  background: #171717;
  color: #FFFFFF;
  border: 1px solid #171717;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.start__step h3 { margin: 6px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.start__step p { margin: 0; color: #525252; }

/* ---- Para criadores ---- */

.creators { padding: clamp(72px, 9vw, 120px) 0; background: #171717; color: #FFFFFF; }
.creators__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.creators__copy { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.creators h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.creators__lead { margin: 0; font-size: 18px; line-height: 1.6; color: #D4D4D4; text-wrap: pretty; }
.creators__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; align-items: flex-start; }
.creators__note { margin: 0; font-size: 14px; color: #A3A3A3; }
.creators__list { margin: 0; display: flex; flex-direction: column; }
.creators__item { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-top: 1px solid #333333; }
.creators__item:last-child { border-bottom: 1px solid #333333; }
.creators__item dt { font-weight: 600; font-size: 17px; }
.creators__item dd { margin: 0; color: #A3A3A3; }

/* ---- Perguntas frequentes ---- */

.faq { padding: clamp(72px, 9vw, 120px) 0; }
.faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.faq h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid #E5E5E5; min-width: 0; }
.faq__item { border-bottom: 1px solid #E5E5E5; }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 16px 0;
  font-weight: 500;
  font-size: 17px;
}
.faq__item summary:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 2px; }
.faq__chev { flex: none; transition: transform .2s; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item p { margin: 0 0 18px; color: #525252; max-width: 60ch; }

/* ---- Chamada final ---- */

.final { padding: clamp(72px, 9vw, 128px) 0; background: #F5F5F5; }
.final__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.final h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 16ch;
}
.final__ctas { justify-content: center; }
/* #737373 sobre #F5F5F5 dá 4,35:1; este tom passa no AA (4,5:1) — NFR-001. */
.final .microcopy { color: #6B6B6B; }

/* ---- Rodapé ---- */

.site-footer { background: #171717; color: #D4D4D4; padding: 40px 0; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__logo { display: block; width: 80px; height: 39px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.footer-nav a {
  color: #D4D4D4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-nav a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* ---- Barra fixa do celular ---- */

.mobile-cta { display: none; }
.mobile-cta__signin { flex: 1; }
.mobile-cta__signin:active { background: #F5F5F5; }
.mobile-cta__signup { flex: 2; }
.mobile-cta__signup:active { filter: brightness(.9); }

/* ---- Página 404 ---- */

.page-404 { min-height: 100vh; display: flex; flex-direction: column; } /* rodapé na base da tela */
.notfound { flex: 1; padding: clamp(72px, 9vw, 128px) 0; }
.notfound__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.notfound h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 16ch;
}
.notfound__text { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: #525252; max-width: 52ch; }
.notfound .btn-row { justify-content: center; }

/* ---- Celular (< 760 px) ---- */

@media (max-width: 759.98px) {
  html { scroll-padding-bottom: 72px; } /* foco não fica escondido sob a barra fixa */

  .site-header { position: relative; } /* no celular o cabeçalho rola com a página */
  .site-nav,
  .site-header__actions { display: none; }

  .topics-head { display: none; }
  .topic { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 9px; padding: 12px 16px; }
  .topic--sub { padding-left: 36px; }
  .topic__name { flex: 0 0 100%; }
  .topic--sub .topic__name { padding-left: 0; }
  .topic__cell { align-items: center; gap: 6px; font-size: 12.5px; color: #525252; }
  .topic__label { display: inline; }

  .notebook-mock { order: 0; }
  .nb-side { display: none; }

  .site-footer { padding-bottom: 28px; }

  .mobile-cta {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #FFFFFF;
    border-top: 1px solid #E5E5E5;
    box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .18);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
