/* =========================================================================
   Uso do Celular — style.css
   Pesquisa escolar (SPA estática). Mobile-first, sem frameworks.
   Sistema único: uma escala de botões, um raio, um estilo de card,
   um olhar de link, foco visível sempre. Tokens no :root.
   ========================================================================= */

/* ---------------------------------------------------------------- Tokens */
:root {
  /* Paleta pedida no briefing */
  --navy: #0B1F4B;          /* azul-marinho: tinta e fundos escuros */
  --blue: #1E4FA3;          /* azul: estado, gráficos, anel de foco */
  --amber: #F5A100;         /* âmbar: ação principal e destaque */
  --amber-soft: #FFF8E9;    /* âmbar lavado para fundo selecionado */
  --bg: #F7F6F2;            /* fundo claro da página */
  --surface: #FFFFFF;       /* cards */
  --ink: #14264D;           /* texto principal (7:1 no branco) */
  --muted: #55607A;         /* rótulos e meta (4.5:1+) */
  --line: rgba(11, 31, 75, .14);
  --line-strong: rgba(11, 31, 75, .30);
  --danger: #B42318;
  --danger-soft: #FEF3F2;

  /* Tipografia */
  --font-display: 'Poppins', system-ui, sans-serif;
  --display-weight: 700;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-h1: clamp(36px, 6.6vw, 68px);
  --t-h2: clamp(26px, 3.2vw, 34px);
  --t-lead: clamp(17px, 1.5vw, 19px);
  --t-body: 16px;
  --t-small: 14px;

  /* Formas e medidas */
  --r-lg: 22px;   /* cards */
  --r-md: 16px;   /* painéis */
  --r-sm: 12px;   /* controles */
  --r-btn: 14px;
  --nav-h: 60px;
  --gut: 20px;    /* margem lateral do .wrap */
  --shadow: 0 1px 2px rgba(11, 31, 75, .05), 0 18px 40px -26px rgba(11, 31, 75, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Tokens usados pelo momento montado (assets/moments) */
  --s-6: 24px;
  --t-h3: 18px;
}
@media (min-width: 600px) { :root { --gut: 32px; --nav-h: 64px; } }
@media (min-width: 1024px) { :root { --gut: 48px; } }

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: var(--t-h1); line-height: 1.06; }
h2 { font-size: var(--t-h2); }
p { margin: 0; }
ul { margin: 0; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }

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

/* Escondido por script/estado vence qualquer display do autor */
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -70px; left: 16px; z-index: 100;
  background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 0 0 12px 12px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }
.skip-link:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------------------------------------------------------------- Layout */
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 780px; }

main { display: flex; flex-direction: column; padding-top: var(--nav-h); flex: 1 0 auto; }

.screen { padding: 36px 0 56px; }
.screen[hidden] { display: none !important; }

/* Transição discreta ao trocar de tela (não é reveal de scroll) */
.screen { animation: screen-in .26s var(--ease) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* O consentimento é curto: ocupa o espaço acima do rodapé e centraliza o card */
#tela-consentimento { display: flex; align-items: center; flex: 1 0 auto; }

.eyebrow {
  font: 600 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin: 0 0 14px;
}
.eyebrow--amber { color: var(--amber); }

.section__lead { font-size: var(--t-lead); color: var(--muted); max-width: 62ch; margin-top: 12px; }

/* ---------------------------------------------------------------- Barra superior */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h);
  background: var(--surface); border-bottom: 1px solid var(--line); z-index: 50;
}
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }

.logo {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  text-decoration: none; color: var(--navy); font: 600 16px/1 var(--font-display);
  white-space: nowrap;
}
.logo:hover .logo__name { color: var(--blue); }

.topbar__links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 12px; text-decoration: none; color: var(--navy);
  font: 600 15px/1 var(--font-body); border-radius: 10px;
}
.topbar__links a:hover { color: var(--blue); }
.topbar__links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.topbar__links a:hover::after,
.topbar__links a[aria-current]::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-btn);
  border: 1.5px solid transparent; background: none;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s, border-color .16s, box-shadow .16s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.m-arrow { flex: 0 0 auto; }

.btn--primary { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn--primary:hover { background: #FFB524; border-color: #FFB524; box-shadow: 0 10px 24px -14px rgba(245, 161, 0, .9); }
.btn--primary:focus-visible { outline-color: var(--navy); }

.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); background: #fff; }

.btn--ghost-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn--ghost-light:focus-visible { outline-color: var(--amber); }

.btn--danger { background: transparent; border-color: rgba(180, 35, 24, .45); color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn--danger:focus-visible { outline-color: var(--danger); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row--actions { margin-top: 36px; }

/* No celular todos os botões ocupam a largura inteira (uma regra só) */
@media (max-width: 640px) {
  .btn-row, .dlg__acoes { flex-direction: column; }
  .btn-row .btn, .dlg__acoes .btn { width: 100%; }
}

.form__status {
  min-height: 22px; margin-top: 14px;
  font-size: var(--t-small); font-weight: 600; color: var(--muted);
}
.form__status:empty { min-height: 0; margin-top: 0; }

/* ---------------------------------------------------------------- Herói */
.hero {
  position: relative; overflow: hidden; padding: 0;
  display: flex; align-items: center;
  min-height: calc(100svh - var(--nav-h));
  color: #fff;
  background-color: var(--navy);
  background-image:
    radial-gradient(640px 520px at 100% 50%, rgba(30, 79, 163, .62), transparent 72%),
    linear-gradient(135deg, #0B1F4B 0%, #123068 62%, #17417F 100%);
}
.hero__ground {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .85), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .85), transparent 72%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr);
  align-items: center; gap: clamp(36px, 6vw, 84px); padding-block: 64px 56px;
}
.hero__copy { grid-column: 1; grid-row: 1; }
.hero__photo {
  grid-column: 2; grid-row: 1; position: relative; margin: 0; isolation: isolate;
  justify-self: end; width: 100%; max-width: 500px; aspect-ratio: 699 / 423; height: auto;
  border: 8px solid rgba(255, 255, 255, .92); border-radius: 26px;
  background: #e5e1d8; box-shadow: 0 28px 70px rgba(2, 12, 34, .32);
  transform: rotate(1.2deg);
}
.hero__photo::before {
  content: ''; position: absolute; z-index: -1; width: 112px; height: 112px; right: -30px; bottom: 38px;
  border-radius: 50%; background: var(--amber); box-shadow: 0 12px 28px rgba(2, 12, 34, .2);
}
.hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 53% center; border-radius: inherit; }
.hero__photo:hover img { transform: scale(1.025); }
.hero__photo img { transition: transform .5s var(--ease); }

.hero__title { max-width: 15ch; color: #fff; }
.hero__destaque { color: var(--amber); }

.hero__lead {
  margin-top: 20px; max-width: 54ch;
  font-size: var(--t-lead); line-height: 1.6; color: rgba(255, 255, 255, .86);
}
.hero__project { display: flex; flex-wrap: wrap; gap: 18px 30px; margin: 24px 0 0; }
.hero__project div { display: grid; gap: 6px; }
.hero__project dt {
  font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255, 255, 255, .62);
}
.hero__project dd { margin: 0; font: 600 16px/1.3 var(--font-body); color: #fff; }
.hero__copy .eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.hero__copy .eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--amber); }
.hero .btn-row { margin-top: 32px; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 26px;
  font: 500 13px/1.5 var(--font-mono); color: rgba(255, 255, 255, .72);
}
.hero__facts span + span::before {
  content: '·'; margin: 0 10px; color: var(--amber);
}

.hero :focus-visible { outline-color: var(--amber); }

/* ---------------------------------------------------------------- Cartão / listas */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px 22px;
}
@media (min-width: 640px) { .card { padding: 32px; } }

.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.6; }
.checklist__mark {
  flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  background: var(--amber-soft); border: 1.5px solid rgba(245, 161, 0, .6);
  color: var(--navy); display: grid; place-content: center;
}

/* Consentimento */
.consent {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 26px; padding: 16px; min-height: 56px;
  background: #FFFDF8; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.consent:hover { border-color: var(--line-strong); }
.consent:has(.consent__input:checked),
.consent.is-checked { border-color: var(--amber); background: var(--amber-soft); }
.consent__input {
  appearance: none; flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0;
  border: 2px solid #98A2B8; border-radius: 7px; background: #fff;
  display: grid; place-content: center; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.consent__input::after {
  content: ''; width: 11px; height: 6px; margin-top: -2px;
  border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg) scale(0); transition: transform .15s var(--ease);
}
.consent__input:checked { background: var(--amber); border-color: var(--amber); }
.consent__input:checked::after { transform: rotate(-45deg) scale(1); }
.consent__input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.consent__text { font-size: 15px; line-height: 1.55; }

/* ---------------------------------------------------------------- Questionário */
.step__head {
  position: sticky; top: var(--nav-h); z-index: 5;
  background: var(--bg); padding: 8px 0 14px;
}
.step__meta h2 { font-size: clamp(24px, 3vw, 30px); }

.progress {
  margin-top: 16px; height: 8px; border-radius: 99px;
  background: rgba(11, 31, 75, .1); overflow: hidden;
}
.progress__fill {
  display: block; height: 100%; width: 25%; border-radius: 99px;
  background: var(--blue); transition: width .45s var(--ease);
}

.questions { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }

.q {
  margin: 0; min-width: 0; padding: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
@media (min-width: 640px) { .q { padding: 24px 26px; } }
.q.is-erro { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger), var(--shadow); }

.q__title {
  display: block; width: 100%; padding: 0; margin: 0 0 16px;
  font: 600 17px/1.45 var(--font-display); color: var(--ink); letter-spacing: -.01em;
}
@media (min-width: 640px) { .q__title { font-size: 18px; } }
.q__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 24px; padding: 0 7px; margin-right: 10px;
  vertical-align: -2px;
  font: 600 12px/1 var(--font-mono); color: var(--navy);
  background: rgba(245, 161, 0, .2); border: 1px solid rgba(245, 161, 0, .55);
  border-radius: 8px;
}

/* Opções como cards clicáveis de largura total */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 12px 16px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.opt:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.opt.is-checked {
  border-color: var(--amber); background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px var(--amber);
}
.opt input {
  appearance: none; flex: 0 0 auto; width: 22px; height: 22px; margin: 0;
  border: 2px solid #98A2B8; border-radius: 50%; background: #fff;
  display: grid; place-content: center; cursor: pointer; transition: border-color .15s;
}
.opt input::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--amber);
  transform: scale(0); transition: transform .15s var(--ease);
}
.opt input:checked { border-color: var(--amber); }
.opt input:checked::after { transform: scale(1); }
.opt input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.opt__label { font-size: 16px; line-height: 1.45; }

/* Select */
.select {
  appearance: none; -webkit-appearance: none; width: 100%; min-height: 54px;
  padding: 0 46px 0 16px; font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1.5 1.5L7 7l5.5-5.5' stroke='%230B1F4B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.select:hover { border-color: var(--line-strong); }
.select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.q.is-erro .select { border-color: var(--danger); }

.q__error { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--danger); }
.q__error[hidden] { display: none; }

.step__actions { display: flex; gap: 12px; margin-top: 26px; }
#btn-voltar { margin-right: auto; }
@media (max-width: 640px) { #btn-voltar { margin-right: 0; } }

/* ---------------------------------------------------------------- Conclusão */
.screen--center {
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center; padding-block: 48px;
}
.card--done { text-align: center; padding: 36px 22px; }
@media (min-width: 640px) { .card--done { padding: 44px 40px; } }

.done__badge {
  width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  display: grid; place-content: center;
}
.done__lead { margin-top: 16px; font-size: var(--t-lead); color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* O momento letters-assemble usa .mo-la__type; este é o tamanho da página */
#tela-conclusao .mo-la__type {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(30px, 5vw, 52px); line-height: 1.08; letter-spacing: -.03em;
  color: var(--ink); max-width: 16ch; margin-inline: auto; text-wrap: balance;
}

.protocolo {
  margin: 28px auto 0; padding: 20px; max-width: 340px;
  background: #FFFDF8; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
}
.protocolo__label {
  font: 600 12px/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin-bottom: 12px;
}
.protocolo__valor {
  font: 600 clamp(24px, 5vw, 32px)/1.1 var(--font-mono);
  color: var(--navy); letter-spacing: .04em; word-break: break-all;
}
.card--done .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- Resultados */
.stats { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow); }
.stat__label { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.stat__value { font: 700 clamp(38px, 6vw, 52px)/1 var(--font-display); color: var(--navy); letter-spacing: -.02em; }
.stat__value--sm { font-size: clamp(20px, 3vw, 26px); line-height: 1.25; }

.charts { display: flex; flex-direction: column; gap: 34px; margin-top: 34px; }
.chart-group__label {
  font: 600 12px/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin-bottom: 14px;
}
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .chart { padding: 24px 26px; } }
.chart h3 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.chart__meta { font-size: 13px; color: var(--muted); margin-top: 6px; margin-bottom: 18px; }

.chart__rows { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.chart__top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 7px; }
.chart__label { font-size: 15px; line-height: 1.4; }
.chart__pct { flex: 0 0 auto; font: 600 14px/1 var(--font-mono); color: var(--navy); }
.chart__track { height: 12px; background: rgba(11, 31, 75, .09); border-radius: 99px; overflow: hidden; }
.chart__bar {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: var(--blue); transition: width .7s var(--ease);
}
.chart__bar.is-on { width: var(--pct); }
.chart__empty { font-size: 15px; color: var(--muted); }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 34px; text-align: center; padding: 42px 24px;
  background: var(--amber-soft); border: 1px solid rgba(245, 161, 0, .28); border-radius: var(--r-lg);
}
.empty-state__mark {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 20px;
  border-radius: 18px; background: var(--amber); color: var(--navy);
}
.empty-state h3 { font: 600 clamp(20px, 3vw, 25px)/1.25 var(--font-display); color: var(--navy); }
.empty-state p { max-width: 48ch; margin-top: 10px; font-size: var(--t-lead); color: var(--muted); }
.empty-state .btn-row { justify-content: center; margin-top: 24px; }

/* ---------------------------------------------------------------- Rodapé */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 26px 0; margin-top: 56px; }
.footer__inner { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
}
.footer__brand { font: 600 15px/1.4 var(--font-display); color: var(--navy); }
.footer__note, .footer__legal, .footer__credit { font-size: 13px; color: var(--muted); }
.footer__credit a { color: inherit; text-underline-offset: 3px; }
.footer__credit a:hover { color: var(--blue); }

/* ---------------------------------------------------------------- Diálogo */
.dlg {
  width: min(420px, calc(100% - 40px)); padding: 28px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(11, 31, 75, .6);
}
.dlg::backdrop { background: rgba(11, 31, 75, .55); }
.dlg__titulo { font-size: 21px; }
.dlg__texto { margin-top: 12px; font-size: 15px; color: var(--muted); }
.dlg__acoes { display: flex; gap: 12px; margin-top: 24px; }

/* ---------------------------------------------------------------- Movimento */
/* Entrada única do herói, ao carregar (html.m-enter vem do <head>) */
@keyframes enter-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html.m-enter [data-enter] { animation: enter-up .6s var(--ease) both; animation-delay: var(--d, 0ms); }
}
@media (prefers-reduced-motion: reduce) {
  .screen, .btn, .opt, .chart__bar, .progress__fill, .skip-link { animation: none !important; transition: none !important; }
  .chart__bar { width: var(--pct); }
  .btn:hover, .opt:hover { transform: none; }
}

/* Barra superior mais apertada em telas de mão */
@media (max-width: 640px) {
  .topbar__inner { gap: 4px; }
  .logo { gap: 7px; font-size: 15px; }
  .topbar nav ul { gap: 0; }
  .topbar__links a { padding: 0 8px; font-size: 14px; }
  .topbar__links a::after { left: 8px; right: 8px; }
  .hero__facts { font-size: 12px; }
  .hero__facts span + span::before { margin: 0 8px; }
}

/* Ajustes finos de tela pequena (testado a partir de 320px) */
@media (max-width: 380px) {
  .logo__name { font-size: 15px; }
  .topbar__links a { padding: 0 6px; font-size: 13.5px; }
  .hero__inner { padding-block: 48px 44px; }
  .q { padding: 18px 16px; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 34px; padding-block: 38px 48px; }
  .hero__copy { grid-column: 1; grid-row: 2; }
  .hero__photo {
    grid-column: 1; grid-row: 1; justify-self: stretch; width: min(100%, 500px); height: auto; aspect-ratio: 699 / 423;
    border-width: 6px; border-radius: 22px; margin-inline: auto;
  }
  .hero__photo::before { width: 72px; height: 72px; right: -14px; bottom: 22px; }
  .hero__lead { max-width: 58ch; }
}

@media (max-width: 380px) {
  .hero__inner { gap: 28px; padding-block: 28px 40px; }
}
