/* =========================================================
   Intelikit — site (landing page)
   Público: donos de supermercados e lojas, ~40 anos.
   Regras: fontes grandes, alto contraste, alvos de toque altos.
   ========================================================= */

/* Cores espelhadas no app (gerenciador/app/lib/ui/core/themes/
   brand_colors.dart): mudou aqui, mude lá. */
:root {
  --ink: #0b0f14;        /* texto principal */
  --ink-2: #3a4351;      /* texto secundário (≥ 9:1 sobre branco) */
  --line: #d9e2ea;
  --bg: #ffffff;
  --bg-soft: #f2f7fb;
  --accent: #00b8ff;     /* azul do logo */
  --accent-hover: #22c3ff;
  --accent-soft: #ddf4ff;
  --accent-ink: #0b6fa8; /* azul escuro p/ texto sobre branco (≥ 5:1) */
  --dark: #0b0f14;
  --dark-2: #151b24;
  --dark-line: #263040;
  --ok: #16a34a;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(11, 15, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 15, 20, 0.18);
  --font: "Google Sans Flex", "Segoe UI", system-ui, Arial, sans-serif; /* mesmo esqueleto do logo, pontas arredondadas (ROND 100 vem fixo no <link>) */
}

* { box-sizing: border-box; }

html {
  font-size: 17px;                 /* celular: 17px */
  scroll-behavior: smooth;
  scroll-padding-top: 130px;       /* cabeçalho fixo */
}
@media (min-width: 900px) {
  html { font-size: 18px; }        /* desktop: 18px */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1rem + 2vw, 2.5rem); }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
p  { margin: 0 0 1em; }
strong { font-weight: 600; }

.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 34em;
}

a { color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

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

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}
.container.narrow { width: min(860px, 100% - 2.5rem); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus { top: 1rem; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.6rem 1.6rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { min-height: 3.6rem; padding: 0.7rem 2rem; font-size: 1.15rem; }
.btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 24px rgba(0, 184, 255, 0.35); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--bg-soft); transform: translateY(-1px); }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 112px;
}
/* O logo nunca encolhe: com altura fixa, perder largura para o menu achata a
   imagem. Quem se ajusta é o menu (espaços abaixo + breakpoint do hambúrguer). */
.brand { flex-shrink: 0; }
.brand img { height: 84px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 0.8rem; }
.site-nav ul:not(.lang-menu) { list-style: none; display: flex; gap: 0.8rem; margin: 0; padding: 0; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-actions .btn { padding-inline: 1.2rem; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.site-nav a:not(.btn):hover { border-color: var(--accent); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.4rem 1rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- seletor de idioma ---------- */
[hidden] { display: none !important; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 3.1rem;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .chev { width: 1rem; height: 1rem; }
.lang-label { display: none; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 12rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.lang-menu li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
}
.lang-menu li:hover, .lang-menu li:focus { background: var(--bg-soft); outline: none; }
.lang-menu li[aria-selected="true"] { font-weight: 600; color: var(--accent-ink); }
.lang-menu li[aria-selected="true"]::after { content: "✓"; font-weight: 700; }

/* 1279px: abaixo disso o menu em espanhol (o mais longo) não cabe ao lado do
   logo de 84px contando a barra de rolagem do Windows. */
@media (max-width: 1279px) {
  .brand img { height: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul:not(.lang-menu) { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
  }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 0.7rem; margin-top: 1rem; }
  .nav-actions .btn { min-height: 3.4rem; font-size: 1.15rem; }

  /* idioma dentro do menu do celular: botão largo, lista abre no lugar */
  .lang { padding: 0.9rem 0 0.3rem; }
  .lang-btn { width: 100%; justify-content: flex-start; min-height: 3.2rem; font-size: 1.1rem; }
  .lang-label { display: inline; }
  .lang-btn .chev { margin-left: auto; }
  .lang-menu { position: static; box-shadow: none; border: 1px solid var(--line); margin-top: 0.5rem; min-width: 0; }
}

/* ---------- seções ---------- */
.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 46em; margin-bottom: 2.8rem; }
.section-head .lead { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(900px 520px at 90% -10%, var(--accent-soft), transparent 65%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 1.6rem;
}
.hero-actions.center { justify-content: center; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 1rem;
}
.hero-facts li::before { content: "✓ "; color: var(--accent-ink); font-weight: 700; }

@media (max-width: 1023px) {
  .hero { padding: 3rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- ilustração: tela do PDV ---------- */
.device {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.85rem;
}
.device-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}
.device-status { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #c7d0da; }
.dot { width: 0.7em; height: 0.7em; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25); }

.device-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  padding: 1rem;
}
.cam {
  position: relative;
  min-height: 250px;
  border-radius: 16px;
  background: linear-gradient(160deg, #1b2330, #0b0f14);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cam-corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 3px solid var(--accent);
}
.cam-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.cam-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.cam-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.cam-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.cam-plate {
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a4759, #1a2130 70%);
  box-shadow: inset 0 0 0 6px #2b3546, 0 10px 30px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
}
.cam-fruit {
  width: 92px; height: 48px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(135deg, #ffe066, #f2b705);
  transform: rotate(-18deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
.cam-label {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  color: #c7d0da;
  font-weight: 600;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.weight {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.35em;
  padding: 0.25em 0.9em;
  border-radius: 999px;
  white-space: nowrap;
}

.cands { display: grid; gap: 0.6rem; align-content: start; }
.cand {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name score" "price score";
  align-items: center;
  column-gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.cand-top { border-color: var(--accent); background: var(--accent-soft); }
.cand-name { grid-area: name; font-weight: 700; font-size: 1.05em; white-space: nowrap; }
.cand-price { grid-area: price; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.cand-score { grid-area: score; font-weight: 700; color: var(--accent-ink); font-size: 1.1em; }
.cand-top .cand-score::before { content: "✓ "; }

.device-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.total-line { display: block; color: var(--ink-2); font-weight: 600; }
.total { display: block; font-weight: 700; font-size: 1.6em; line-height: 1.1; }
.btn-fake {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9em;
  padding: 0 1.4em;
  background: var(--accent);
  color: var(--ink);
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .device-body { grid-template-columns: 1fr; }
  .cam { min-height: 220px; }
}

/* ---------- faixa escura: balança com IA ---------- */
.band-dark {
  background: var(--dark);
  color: #f4f7fa;
  padding: 5.5rem 0;
}
.band-dark .eyebrow { background: rgba(0, 184, 255, 0.16); color: var(--accent); }
.band-dark h2 { color: #fff; }
.band-dark .lead { color: #c7d0da; }
.band-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 1023px) {
  .band-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .band-dark { padding: 4rem 0; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2.2rem;
  display: grid;
  gap: 1.1rem;
}
.checklist li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.9rem;
  align-items: start;
  font-size: 1.08rem;
}
.checklist strong { color: #fff; }
.tick {
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* ---------- ilustração: base de reconhecimento ---------- */
.train-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.95rem;
}
.train-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--dark-line);
  font-weight: 700;
  color: #fff;
}
.train-device { color: #9aa7b5; font-weight: 600; font-size: 0.9em; }
.train-card ul { list-style: none; margin: 0; padding: 0.6rem 0; }
.train-card li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.train-card li:last-child { border-bottom: 0; }
.swatch { width: 2.2rem; height: 2.2rem; border-radius: 10px; }
.s1 { background: linear-gradient(135deg, #ffe066, #f2b705); }
.s2 { background: linear-gradient(135deg, #ff6b6b, #c92a2a); }
.s3 { background: linear-gradient(135deg, #ff8787, #2f9e44); }
.s4 { background: linear-gradient(135deg, #b2f2bb, #74c69d); }
.s5 { background: linear-gradient(135deg, #e9d8a6, #bb9457); }
.tn { font-weight: 700; color: #fff; }
.tc { color: #9aa7b5; font-weight: 600; white-space: nowrap; }
.tok, .tmore {
  font-weight: 700;
  font-size: 0.85em;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  white-space: nowrap;
}
.tok { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.tmore { background: rgba(0, 184, 255, 0.18); color: var(--accent); }
.train-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--dark-line);
  color: #c7d0da;
  font-weight: 600;
}

/* ---------- para quem ---------- */
.audience {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.audience li {
  display: grid;
  gap: 0.3rem;
  padding: 1.5rem 1.6rem;
  border: 2px solid var(--line);
  border-left: 8px solid var(--accent);
  border-radius: 16px;
  background: #fff;
}
.audience strong { font-size: 1.15rem; }
.audience span { color: var(--ink-2); }
@media (max-width: 1023px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .audience { grid-template-columns: 1fr; } }

/* ---------- recursos / plataformas ---------- */
.features, .platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 1023px) { .features, .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .features, .platforms { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--ink-2); }
.icon {
  display: grid;
  place-items: center;
  width: 3.4rem; height: 3.4rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 1.2rem;
}
.icon svg {
  width: 1.9rem; height: 1.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- assistente (balões) ---------- */
.chat {
  display: grid;
  gap: 0.9rem;
  padding: 1.6rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 1rem;
}
.bubble {
  max-width: 88%;
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  line-height: 1.5;
}
.bubble.user {
  justify-self: end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble.bot {
  justify-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

/* ---------- como funciona ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  counter-reset: passo;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}
.steps p { margin: 0; color: var(--ink-2); }
.step-n {
  display: grid;
  place-items: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 1023px) { .steps { grid-template-columns: 1fr; } }

/* ---------- perguntas ---------- */
.faq { display: grid; gap: 0.9rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 1.5rem;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 2.2rem; height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.3rem; color: var(--ink-2); font-size: 1.08rem; }

/* ---------- contato ---------- */
.cta {
  padding: 5.5rem 0;
  background:
    radial-gradient(700px 400px at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta-note { color: var(--ink-2); font-weight: 600; margin: 0.5rem 0 0.8rem; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.2rem;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.contact-links a:hover { color: var(--accent-ink); }
.contact-links svg { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- rodapé ---------- */
.site-footer {
  background: #fff;
  border-top: 2px solid var(--line);
  padding: 3rem 0 2rem;
  color: var(--ink-2);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}
.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
}
.site-footer nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.4rem 0; display: inline-block; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-copy {
  margin-top: 2rem;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem 2rem;
  text-align: center;
}
.footer-copy p { margin: 0; }
.footer-legal .heart { color: var(--accent); width: 1em; height: 1em; vertical-align: -0.12em; margin: 0 0.1em; }

/* Card "Base de reconhecimento" em telas estreitas: nome em cima, contagem embaixo */
.train-device { white-space: nowrap; }
@media (max-width: 480px) {
  .train-card li {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "sw name tag" "sw count tag";
    row-gap: 0.1rem;
  }
  .swatch { grid-area: sw; }
  .tn { grid-area: name; }
  .tc { grid-area: count; font-size: 0.9em; }
  .tok, .tmore { grid-area: tag; }
}
