/* ==========================================================================
   Lista de Marcas — V1 (protótipo)
   Mobile first. Breakpoints: 640px (tablet) · 1024px (desktop)
   ========================================================================== */

/* ---------- Fontes (locais, copiadas de /brand/fontes) ---------- */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --ldm-roxo: #62019C;
  --ldm-roxo-80: #8134B0;
  --ldm-roxo-20: #E0CCEB;
  --ldm-roxo-10: #EFE6F5;
  --ldm-laranja: #F86404;
  --ldm-laranja-20: #FEE0CD;
  --ldm-tinta: #1B0930;
  --ldm-lavanda: #F1E8FA;
  --ldm-pessego: #FFF0E6;
  --ldm-cinza: #5E5670;
  --ldm-linha: #E4DCEC;
  --ldm-branco: #FFFFFF;

  /* Superfícies */
  --bg: #FBFAFD;
  --surface: var(--ldm-branco);
  --placeholder: #9A93A8;

  /* Cores das categorias (ícones em círculo suave) */
  --cat-alimentacao: #F86404;  --cat-alimentacao-bg: #FFEEE3;
  --cat-saude: #14946A;        --cat-saude-bg: #E3F6EE;
  --cat-beleza: #D61F8C;       --cat-beleza-bg: #FDE6F2;
  --cat-higiene: #2563EB;      --cat-higiene-bg: #E6EEFD;
  --cat-perfumaria: #7C1FD1;   --cat-perfumaria-bg: #F1E8FA;
  --cat-limpeza: #E5A100;      --cat-limpeza-bg: #FFF5DC;
  --cat-pet: #E5322D;          --cat-pet-bg: #FDE8E7;
  --cat-casa: #0F9488;         --cat-casa-bg: #E0F5F2;
  --cat-outros: #5E5670;       --cat-outros-bg: #F0EEF3;

  /* Tipografia */
  --font-display: 'Poppins', Arial, Helvetica, sans-serif;
  --font-text: 'Inter', Arial, Helvetica, sans-serif;

  /* Forma e espaço */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --gutter: 16px;
  --maxw: 1200px;
  --tabbar-h: 58px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ldm-tinta);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ldm-roxo-20); outline-offset: 2px; border-radius: 8px; }
.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; }

.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* Respiro entre o fim do conteúdo e a tab bar (no desktop: 72px) */
main { display: block; padding-bottom: 32px; }

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 7.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.title-1 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.title-2 { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.lead { color: var(--ldm-cinza); font-size: 15px; line-height: 1.5; }
.muted { color: var(--ldm-cinza); }

/* ==========================================================================
   Cabeçalho mobile (app bar)
   ========================================================================== */
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 253, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.appbar__inner {
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  min-height: 56px; gap: 8px;
}
.appbar--brand .appbar__inner { grid-template-columns: 1fr 40px; }
.appbar__title {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  text-align: center; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appbar__logo img { height: 36px; width: auto; }
.appbar__logo--center { justify-self: center; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; color: var(--ldm-tinta);
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--ldm-lavanda); }
.icon-btn--soft { background: #F1EFF4; }
.icon-btn--soft:hover { background: var(--ldm-lavanda); }
.appbar .icon-btn:last-child { justify-self: end; }

/* ==========================================================================
   Cabeçalho desktop
   ========================================================================== */
.site-header { display: none; }

/* ==========================================================================
   Tab bar (mobile)
   ========================================================================== */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--ldm-linha);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar ul { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 560px; margin: 0 auto; }
.tabbar a, .tabbar button {
  width: 100%; height: var(--tabbar-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ldm-cinza); font-size: 11px; font-weight: 500;
  transition: color .2s var(--ease);
}
.tabbar .icon { width: 23px; height: 23px; }
.tabbar [aria-current="page"] { color: var(--ldm-roxo); font-weight: 600; }
.tabbar [aria-current="page"] .icon { color: var(--ldm-laranja); }
.tabbar [aria-current="page"] .icon.is-filled { fill: var(--ldm-laranja); }

/* ==========================================================================
   Componentes
   ========================================================================== */

/* Busca */
.search {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--ldm-linha);
  border-radius: var(--r-pill);
  color: var(--ldm-cinza);
  transition: border-color .2s var(--ease);
}
.search:focus-within { border-color: var(--ldm-roxo-80); box-shadow: 0 0 0 4px var(--ldm-roxo-10); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ldm-tinta); }
.search input::placeholder { color: var(--placeholder); }
.search-row { display: flex; gap: 10px; }
.search-row .search { flex: 1; min-width: 0; }
.square-btn {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--ldm-linha); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ldm-tinta);
}
.square-btn:hover { border-color: var(--ldm-roxo-20); color: var(--ldm-roxo); }

/* Ícone de categoria (círculo suave) */
.cat-icon {
  --c: var(--cat-outros); --cbg: var(--cat-outros-bg);
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--cbg); color: var(--c);
}
.cat-icon .icon { width: 22px; height: 22px; }
[data-cat="alimentacao"] { --c: var(--cat-alimentacao); --cbg: var(--cat-alimentacao-bg); }
[data-cat="saude"]       { --c: var(--cat-saude);       --cbg: var(--cat-saude-bg); }
[data-cat="beleza"]      { --c: var(--cat-beleza);      --cbg: var(--cat-beleza-bg); }
[data-cat="higiene"]     { --c: var(--cat-higiene);     --cbg: var(--cat-higiene-bg); }
[data-cat="perfumaria"]  { --c: var(--cat-perfumaria);  --cbg: var(--cat-perfumaria-bg); }
[data-cat="limpeza"]     { --c: var(--cat-limpeza);     --cbg: var(--cat-limpeza-bg); }
[data-cat="pet"]         { --c: var(--cat-pet);         --cbg: var(--cat-pet-bg); }
[data-cat="casa"]        { --c: var(--cat-casa);        --cbg: var(--cat-casa-bg); }
[data-cat="outros"]      { --c: var(--cat-outros);      --cbg: var(--cat-outros-bg); }

/* Tile de categoria (home) */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 100px; padding: 12px 6px;
  background: var(--surface); border: 1px solid var(--ldm-linha); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 500; font-size: 13px; text-align: center;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.cat-tile .cat-icon { width: 48px; height: 48px; }
.cat-tile:hover { transform: translateY(-2px); border-color: var(--ldm-roxo-20); }

/* Linha de categoria (tela Categorias) */
.cat-list { display: grid; gap: 10px; }
.cat-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px;
  background: var(--surface); border: 1px solid var(--ldm-linha); border-radius: var(--r-md);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.cat-row .cat-icon { width: 38px; height: 38px; }
.cat-row .cat-icon .icon { width: 19px; height: 19px; }
.cat-row:hover { transform: translateY(-2px); border-color: var(--ldm-roxo-20); }
.cat-row__body { flex: 1; min-width: 0; }
.cat-row__name, .cat-row__desc { display: block; }
.cat-row__name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; line-height: 1.3; letter-spacing: -.01em; }
.cat-row__desc { color: var(--ldm-cinza); font-size: 12px; }
.cat-row__count { display: none; }
.cat-row__badge {
  flex: none; min-width: 28px; height: 22px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--ldm-lavanda); color: var(--ldm-roxo); font-size: 12px; font-weight: 600;
}
.cat-row .chev { margin-left: -4px; }
.chev { color: var(--ldm-cinza); flex: none; }

/* Chips de filtro */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  --c: var(--ldm-cinza); --cbg: #F3F1F6;
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--cbg); color: var(--ldm-tinta);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.chip .icon { color: var(--c); width: 17px; height: 17px; }
.chip:hover { border-color: var(--c); }
.chip[aria-pressed="true"] { background: var(--ldm-laranja); color: #fff; font-weight: 600; border-color: var(--ldm-laranja); }
.chip[aria-pressed="true"] .icon { color: #fff; }

/* Logo / inicial da marca */
.brand-logo {
  --size: 64px;
  width: var(--size); height: var(--size); flex: none;
  display: grid; place-items: center; overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--logo-bg, var(--surface));
  border: 1px solid rgba(27, 9, 48, .05);
}
.brand-logo svg { width: 72%; height: 72%; }
.brand-logo--initial {
  background: var(--ldm-lavanda); color: var(--ldm-roxo);
  font-family: var(--font-display); font-weight: 700;
  font-size: calc(var(--size) * .42); line-height: 1;
}

/* Cartão de marca — lista (padrão mobile) */
.brand-list { display: grid; gap: 10px; }
.brand-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px;
  background: var(--surface); border: 1px solid var(--ldm-linha); border-radius: var(--r-md);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.brand-card:hover { transform: translateY(-2px); border-color: var(--ldm-roxo-20); }
.brand-card .brand-logo { --size: 56px; }
.brand-card__body { flex: 1; min-width: 0; }
.brand-card__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
.brand-card__cat { color: var(--ldm-cinza); font-size: 13px; }
.brand-card__cat b { font-weight: 500; color: var(--ldm-roxo); }
.brand-card__desc, .brand-card__origin { display: none; }
.brand-card__name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }

/* Cartão de marca — grade (ativado via .brand-list--grid) */
.brand-list--grid { grid-template-columns: repeat(2, 1fr); }
.brand-list--grid .brand-card {
  flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px;
}
.brand-list--grid .brand-card .brand-logo { --size: 48px; }
.brand-list--grid .brand-card .chev { display: none; }
.brand-list--grid .brand-card__desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ldm-cinza); font-size: 13px; margin-top: 4px;
}
.brand-list--grid .brand-card__origin {
  display: flex; align-items: center; gap: 4px; margin-top: 8px;
  color: var(--ldm-cinza); font-size: 12px; font-weight: 500;
}
.brand-list--grid .brand-card__cat { font-size: 12.5px; }

/* Cartão de destaque (home) */
.featured { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
.featured::-webkit-scrollbar { display: none; }
.feature-card {
  flex: 0 0 158px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  padding: 14px 10px 12px;
  background: var(--surface); border: 1px solid var(--ldm-linha); border-radius: var(--r-md);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--ldm-roxo-20); }
.feature-card .brand-logo { --size: 60px; margin-bottom: 8px; border: 0; }
.feature-card__name { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.feature-card__cat { color: var(--ldm-cinza); font-size: 11.5px; }

/* Selos */
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: var(--r-pill); font-size: 10.5px; font-weight: 600; white-space: nowrap;
}
.badge--new { background: var(--ldm-laranja); color: var(--ldm-tinta); }
.badge--featured { background: var(--ldm-roxo); color: var(--ldm-branco); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: var(--r-pill); background: #F3F1F6; color: var(--ldm-tinta);
  font-size: 12.5px; font-weight: 500;
}
.tag--primary { background: var(--ldm-pessego); color: #B54700; }
.tag--soft { background: var(--ldm-lavanda); color: var(--ldm-roxo); }

/* Seção */
.section { margin-top: 28px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.link-more {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--ldm-roxo); font-weight: 600; font-size: 13px;
}
.link-more .icon { color: var(--ldm-laranja); transition: transform .2s var(--ease); }
.link-more:hover .icon { transform: translateX(3px); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  transition: background .2s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ldm-roxo); color: var(--ldm-branco); }
.btn--primary:hover { background: #50017F; }
.btn--secondary { border: 1.5px solid var(--ldm-roxo); color: var(--ldm-roxo); background: transparent; }
.btn--secondary:hover { background: var(--ldm-lavanda); }
.btn--block { width: 100%; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* Painel / cartão genérico */
.panel {
  background: var(--surface); border: 1px solid var(--ldm-linha);
  border-radius: var(--r-lg);
}

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { padding-top: 8px; }
.hero .display { max-width: 13ch; }
.hero .lead { margin-top: 10px; max-width: 34em; }
.hero .search { margin-top: 20px; }
.hero__cats { margin-top: 16px; }

.promo {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 42%; align-items: center;
  min-height: 168px; margin-top: 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(110deg, var(--ldm-pessego) 0%, #FFF6EF 55%, #FDE7D8 100%);
}
.promo__text { position: relative; z-index: 1; padding: 20px 0 20px 18px; }
.promo__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.18; letter-spacing: -.02em; }
.promo__text p { margin-top: 6px; color: var(--ldm-cinza); font-size: 13px; line-height: 1.4; }
.promo__text .link-more { margin-top: 10px; }
.promo__art { align-self: stretch; position: relative; }
.promo__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ==========================================================================
   DETALHE DA MARCA
   ========================================================================== */
.profile { padding-top: 4px; }
.profile__head { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.profile__logo .brand-logo { --size: 96px; border-radius: var(--r-md); }
.profile__logo .brand-logo svg { width: 84%; height: 84%; }
.profile__name { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.1; letter-spacing: -.02em; }
.profile__kicker { margin-top: 4px; color: var(--ldm-cinza); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.profile__badges { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.profile__short { margin-top: 14px; color: var(--ldm-cinza); font-size: 14px; }
.profile .tags { margin-top: 12px; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 18px; padding: 14px 6px;
}
.fact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 6px; }
.fact + .fact { border-left: 1px solid var(--ldm-linha); }
.fact .icon { width: 22px; height: 22px; color: var(--ldm-roxo); margin-bottom: 4px; }
.fact strong { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.3; }
.fact span { color: var(--ldm-cinza); font-size: 11px; }

.about { margin-top: 24px; }
.about__text { margin-top: 8px; color: var(--ldm-cinza); font-size: 14px; line-height: 1.6; }
.about__text p + p { margin-top: 12px; }
.about__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--ldm-roxo); font-weight: 600; font-size: 14px; }
.read-more .icon { color: var(--ldm-laranja); transition: transform .2s var(--ease); }
.read-more[aria-expanded="true"] .icon { transform: rotate(180deg); }

.channels { margin-top: 22px; padding: 16px 12px 6px; }
.channels .title-2 { padding-left: 6px; margin-bottom: 4px; }
.channel {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  transition: background .2s var(--ease);
}
.channel + .channel { border-top: 1px solid var(--ldm-linha); }
.channel:hover { background: var(--ldm-lavanda); }
.channel__icon { width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.channel__icon svg { width: 28px; height: 28px; }
.channel__label { flex: 1; }
.channel__label small { display: block; color: var(--ldm-cinza); font-size: 12px; font-weight: 400; }
.channel .icon-ext { color: var(--ldm-cinza); }
.updated { margin-top: 16px; color: var(--ldm-cinza); font-size: 11.5px; text-align: center; }

.profile__aside .cta-suggest { margin-top: 20px; padding: 20px; text-align: center; }
.cta-suggest p { color: var(--ldm-cinza); font-size: 13px; margin: 4px 0 12px; }

/* ==========================================================================
   SUGERIR MARCA (formulário)
   ========================================================================== */
.suggest-intro { text-align: center; padding-top: 8px; }
.suggest-intro__icon {
  width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ldm-pessego); color: var(--ldm-laranja);
}
.suggest-intro__icon .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.suggest-intro h1 { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; }
.suggest-intro p { margin-top: 6px; color: var(--ldm-cinza); font-size: 14px; }
.suggest-intro .benefits { display: none; }

.suggest-card { background: none; border: 0; border-radius: 0; }
.form { margin-top: 22px; display: grid; gap: 14px; }
.form__group-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-top: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ldm-tinta); }
.field label .req { color: var(--ldm-laranja); }
.field label .opt { color: var(--ldm-cinza); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--ldm-linha); border-radius: var(--r-sm);
  font-size: 16px; color: var(--ldm-tinta); outline: 0;
  transition: border-color .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ldm-roxo-80); box-shadow: 0 0 0 4px var(--ldm-roxo-10); }
.select-wrap { position: relative; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select:invalid { color: var(--placeholder); }
.select-wrap .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ldm-tinta); }
.textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field__hint { display: flex; justify-content: space-between; color: var(--ldm-cinza); font-size: 11.5px; }
.form__row { display: grid; gap: 14px; }
.form__note { display: flex; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ldm-lavanda); color: var(--ldm-tinta); font-size: 12.5px; }
.form__note .icon { color: var(--ldm-roxo); }
.form .btn { margin-top: 4px; }

.success {
  display: none; text-align: center; padding: 40px 24px;
}
.success.is-visible { display: block; }
.success .suggest-intro__icon { background: var(--ldm-lavanda); color: var(--ldm-roxo); }
.success p { color: var(--ldm-cinza); margin: 8px auto 24px; max-width: 32em; }

/* ==========================================================================
   Toolbar da lista (contagem + alternar grade/lista)
   ========================================================================== */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.list-toolbar__count { color: var(--ldm-cinza); font-size: 12.5px; }
.view-toggle { display: inline-flex; padding: 3px; border-radius: var(--r-sm); background: #F1EFF4; }
.view-toggle button { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--ldm-cinza); }
.view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ldm-roxo); }
.view-toggle .icon { width: 18px; height: 18px; }

.empty { display: none; text-align: center; padding: 40px 16px; color: var(--ldm-cinza); }
.empty.is-visible { display: block; }
.empty strong { display: block; font-family: var(--font-display); color: var(--ldm-tinta); font-size: 18px; margin-bottom: 6px; }

.page-head { padding-top: 4px; }
.page-head .title-1 { font-size: 26px; }
.page-head p { margin-top: 4px; }

/* Breadcrumb (desktop) */
.crumbs { display: none; }

/* Menu "Mais" (bottom sheet) */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(27, 9, 48, .35);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--ldm-linha); margin: 0 auto 14px; }
.sheet a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; font-size: 14px; font-weight: 500; }
.sheet a + a { border-top: 1px solid var(--ldm-linha); }
.sheet a .icon { color: var(--ldm-roxo); }
body.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
body.sheet-open .sheet { transform: none; }

/* Rodapé (desktop) */
.site-footer { display: none; }

/* ==========================================================================
   TABLET ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .brand-list--grid { grid-template-columns: repeat(3, 1fr); }
  .cat-list { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr 45%; min-height: 200px; }
  .promo__text { padding: 28px 0 28px 28px; }
  .promo__title { font-size: 22px; }
  .profile__head { grid-template-columns: 128px 1fr; gap: 24px; }
  .profile__logo .brand-logo { --size: 128px; }
  .profile__name { font-size: 30px; }
  .suggest-wrap { max-width: 640px; margin-inline: auto; }
}

/* ==========================================================================
   DESKTOP ≥ 1024px — menu superior no lugar da tab bar
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  body { padding-bottom: 0; background: var(--bg); }

  .tabbar, .appbar, .sheet, .sheet-backdrop { display: none; }

  .site-header {
    display: block; position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--ldm-linha);
  }
  .site-header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
  .site-header__logo img { height: 34px; width: auto; }
  .site-nav { display: flex; gap: 4px; }
  .site-nav a {
    position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
    border-radius: var(--r-pill); color: var(--ldm-cinza); font-weight: 500; font-size: 14px;
    transition: color .2s var(--ease), background .2s var(--ease);
  }
  .site-nav a:hover { color: var(--ldm-tinta); background: #F3F1F6; }
  .site-nav a[aria-current="page"] { color: var(--ldm-roxo); font-weight: 600; background: var(--ldm-lavanda); }
  .site-header__search { flex: 1; max-width: 360px; margin-left: auto; height: 40px; padding: 0 14px; background: #F7F5FA; }
  .site-header__search input { font-size: 14px; }
  .site-header .btn { height: 40px; font-size: 14px; padding: 0 20px; }

  main { padding-top: 32px; padding-bottom: 72px; }

  .crumbs { display: flex; align-items: center; gap: 8px; color: var(--ldm-cinza); font-size: 13px; margin-bottom: 16px; }
  .crumbs a:hover { color: var(--ldm-roxo); }
  .crumbs .icon { width: 14px; height: 14px; }
  .crumbs [aria-current] { color: var(--ldm-tinta); font-weight: 500; }

  /* Home */
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 16px; }
  .hero .display { font-size: 46px; }
  .hero .lead { font-size: 16px; }
  .hero__cats { margin-top: 0; }
  .hero .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero .cat-tile { min-height: 120px; font-size: 14px; }
  .promo { margin-top: 44px; min-height: 240px; grid-template-columns: 1fr 50%; }
  .promo__text { padding: 40px 0 40px 44px; }
  .promo__title { font-size: 28px; }
  .promo__text p { font-size: 15px; }
  .section { margin-top: 44px; }
  .section__head .title-2 { font-size: 21px; font-weight: 700; }
  .feature-card { padding: 18px 10px 16px; }

  /* Categorias */
  .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
  .page-head .title-1 { font-size: 34px; }
  .page-head p { font-size: 15px; }
  .cat-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat-row { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; min-height: 172px; }
  .cat-row .cat-icon { width: 52px; height: 52px; }
  .cat-row .cat-icon .icon { width: 22px; height: 22px; }
  .cat-row__badge { display: none; }
  .cat-row__name { font-size: 16px; }
  .cat-row__desc { font-size: 13px; }
  .cat-row .chev { position: absolute; top: 20px; right: 20px; }
  .cat-row { position: relative; }
  .cat-row__desc { margin-top: 4px; }
  .cat-row__count { display: block; margin-top: auto; color: var(--ldm-roxo); font-size: 13px; font-weight: 600; }

  /* Lista de marcas: sidebar de filtros + grade */
  .catalog { display: grid; grid-template-columns: 232px 1fr; gap: 32px; align-items: start; }
  .catalog__filters { position: sticky; top: 112px; }
  .catalog__filters .chips {
    flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 6px;
  }
  .catalog__filters .chip { height: 40px; width: 100%; background: transparent; border-radius: var(--r-sm); }
  .catalog__filters .chip:hover { background: #F3F1F6; border-color: transparent; }
  .catalog__filters .chip[aria-pressed="true"] { background: var(--ldm-lavanda); color: var(--ldm-roxo); border-color: transparent; }
  .catalog__filters .chip[aria-pressed="true"] .icon { color: var(--ldm-roxo); }
  .filters-title { display: block !important; font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--ldm-cinza); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px 18px; }
  .catalog__filters .cta-suggest { display: block !important; margin-top: 24px; padding: 18px; }
  .brand-list--grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .list-toolbar { margin-top: 20px; }

  /* Detalhe */
  .profile { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; padding-top: 0; }
  .profile__head { grid-template-columns: 160px 1fr; gap: 28px; align-items: center; }
  .profile__logo .brand-logo { --size: 160px; border-radius: var(--r-lg); }
  .profile__name { font-size: 38px; }
  .profile__kicker { font-size: 12px; }
  .profile__short { font-size: 16px; }
  .about { margin-top: 40px; }
  .about .title-2 { font-size: 21px; font-weight: 700; }
  .about__text { font-size: 15px; }
  .profile__aside { position: sticky; top: 112px; }
  .facts { grid-template-columns: 1fr; margin-top: 0; padding: 4px 20px; }
  .fact { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 12px 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--ldm-linha); }
  .fact .icon { margin: 0; width: 22px; height: 22px; color: var(--ldm-roxo); }
  .fact > div { display: flex; flex-direction: column-reverse; }
  .channels { margin-top: 20px; }

  /* Sugerir */
  .suggest-wrap { max-width: none; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
  .suggest-intro { text-align: left; position: sticky; top: 120px; padding-top: 24px; }
  .suggest-intro__icon { margin: 0 0 24px; }
  .suggest-intro h1 { font-size: 34px; }
  .suggest-intro p { font-size: 16px; }
  .suggest-intro .benefits { display: grid; gap: 14px; margin-top: 28px; }
  .benefit { display: flex; gap: 14px; align-items: flex-start; }
  .benefit .icon { color: var(--ldm-roxo); background: var(--ldm-lavanda); border-radius: 50%; padding: 7px; width: 34px; height: 34px; }
  .benefit strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
  .benefit span { color: var(--ldm-cinza); font-size: 13px; }
  .suggest-card { padding: 32px; }
  .suggest-card .form { margin-top: 0; }

  /* Rodapé */
  .site-footer { display: block; background: var(--ldm-tinta); color: #CFC6DB; padding: 48px 0 28px; }
  .site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .site-footer img { height: 34px; width: auto; }
  .site-footer p { margin-top: 14px; font-size: 14px; max-width: 30em; }
  .site-footer h3 { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ldm-branco); margin-bottom: 12px; }
  .site-footer li + li { margin-top: 10px; }
  .site-footer a { font-size: 14px; }
  .site-footer a:hover { color: var(--ldm-branco); }
  .site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; display: flex; justify-content: space-between; }
  .site-footer__bottom span:last-child { color: var(--ldm-laranja); }
}

@media (min-width: 1280px) {
  .brand-list--grid { grid-template-columns: repeat(4, 1fr); }
}

/* Itens que só aparecem no desktop */
.filters-title, .catalog__filters .cta-suggest { display: none; }
@media (max-width: 1023.98px) { .desktop-only { display: none !important; } }
@media (min-width: 1024px) { .mobile-only { display: none !important; } }

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

/* Destaques com altura uniforme */
/* Destaques da home: grade 3 por linha, cards da mesma altura */
.featured {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 10px;
  overflow: visible; margin-inline: 0; padding: 4px 0 8px;
}
.featured > li { display: flex; min-width: 0; }
.featured .feature-card { flex: 1; min-width: 0; padding: 12px 8px 10px; }
.featured .feature-card .brand-logo { --size: 48px; margin-bottom: 6px; }
.featured .feature-card__name { font-size: 13px; line-height: 1.25; }
.featured .feature-card__cat { font-size: 11px; line-height: 1.3; }
@media (min-width: 640px) {
  .featured { gap: 14px; }
  .featured .feature-card { padding: 18px 12px 16px; }
  .featured .feature-card .brand-logo { --size: 60px; }
  .featured .feature-card__name { font-size: 14px; }
  .featured .feature-card__cat { font-size: 12px; }
}
@media (min-width: 1024px) {
  .featured { gap: 16px; }
  .featured .feature-card { padding: 22px 16px 20px; }
  .featured .feature-card .brand-logo { --size: 68px; margin-bottom: 10px; }
  .featured .feature-card__name { font-size: 15px; }
  .featured .feature-card__cat { font-size: 12.5px; }
}
@media (min-width: 1024px) {
  .suggest-card { background: var(--surface); border: 1px solid var(--ldm-linha); border-radius: var(--r-lg); }
}

/* Título da página logo acima da lista de categorias (mobile) */
.page-head + .cat-list { margin-top: 12px; }
@media (min-width: 1024px) { .page-head + .cat-list { margin-top: 0; } }

/* Grade de marcas: todos os cards com a altura do maior */
.brand-list > li[hidden] { display: none; }
.brand-list--grid { grid-auto-rows: 1fr; }
.brand-list--grid > li { display: flex; }
.brand-list--grid .brand-card { flex: 1; }
.brand-list--grid .brand-card__body { display: flex; flex-direction: column; width: 100%; flex: 1; }
.brand-list--grid .brand-card__origin { margin-top: auto; padding-top: 8px; }

/* Indicador de filtro ativo no botão de filtros */
.square-btn { position: relative; }
.square-btn.has-filter::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--ldm-laranja); box-shadow: 0 0 0 2px var(--surface);
}

/* Drawer de filtros (desliza da direita) */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(27, 9, 48, .35);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(88vw, 380px); display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  transform: translateX(100%); transition: transform .3s var(--ease);
  visibility: hidden;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; visibility: visible; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px 20px; border-bottom: 1px solid var(--ldm-linha);
}
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 12px 16px; overscroll-behavior: contain; }
.drawer__foot {
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ldm-linha);
}
.drawer__foot .btn { height: 44px; font-size: 14px; }

.fgroup { border-bottom: 1px solid var(--ldm-linha); }
.fgroup--all { padding: 4px 0; }
.fgroup summary {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px;
  list-style: none; cursor: pointer; border-radius: var(--r-sm);
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .cat-icon { width: 32px; height: 32px; }
.fgroup summary .cat-icon .icon { width: 17px; height: 17px; }
.fgroup__name { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.fgroup summary small, .fopt small { color: var(--ldm-cinza); font-size: 12px; }
.fgroup__chev { color: var(--ldm-cinza); transition: transform .2s var(--ease); }
.fgroup[open] .fgroup__chev { transform: rotate(180deg); }
.fgroup__opts { display: grid; gap: 2px; padding: 0 0 10px 42px; }
.fopt {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 0 10px;
  border-radius: var(--r-sm); font-size: 14px; color: var(--ldm-tinta); text-align: left;
}
.fopt span { flex: 1; }
.fopt .icon { display: none; color: var(--ldm-roxo); }
.fopt:hover { background: #F3F1F6; }
.fopt[aria-pressed="true"] { background: var(--ldm-lavanda); color: var(--ldm-roxo); font-weight: 600; }
.fopt[aria-pressed="true"] small { color: var(--ldm-roxo); }
.fopt[aria-pressed="true"] .icon { display: block; }
.fgroup--all .fopt { min-height: 42px; font-family: var(--font-display); font-weight: 600; }
@media (min-width: 1024px) { .drawer, .drawer-backdrop { display: none; } }

/* ==========================================================================
   ESTATÍSTICAS
   ========================================================================== */
.stats-head { display: grid; gap: 12px; padding-top: 4px; }
.stats-head .muted { font-size: 13px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: var(--r-sm); background: #F1EFF4; }
.segmented button { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--ldm-cinza); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ldm-roxo); font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r-md); }
.kpi__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: var(--ldm-lavanda); color: var(--ldm-roxo); }
.kpi__icon .icon { width: 17px; height: 17px; }
.kpi__label { color: var(--ldm-cinza); font-size: 12px; line-height: 1.3; }
.kpi__value { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; color: var(--ldm-tinta); }
.kpi__delta { display: flex; align-items: flex-start; gap: 4px; margin-top: 4px; color: var(--ldm-cinza); font-size: 11px; line-height: 1.35; }
.kpi__delta .icon { width: 14px; height: 14px; flex: none; color: #1E7B45; }

.stats-grid { display: grid; gap: 12px; margin-top: 12px; }
.stat-card { padding: 16px; border-radius: var(--r-md); min-width: 0; }
.stat-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stat-card__head .title-2 { font-size: 15px; }
.stat-card__sub { color: var(--ldm-cinza); font-size: 12px; margin-top: 2px; }
.stat-card__total { font-family: var(--font-display); font-size: 14px; font-weight: 600; white-space: nowrap; }

.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: #EEE9F3; stroke-width: 1; }
.chart .axis { stroke: var(--ldm-linha); stroke-width: 1; }
.chart .tick { fill: var(--ldm-cinza); font-size: 10.5px; font-family: var(--font-body); }
.chart .val { fill: var(--ldm-tinta); font-size: 11px; font-weight: 600; font-family: var(--font-body); }
.chart .line { fill: none; stroke: var(--ldm-roxo); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--ldm-roxo); opacity: .08; }
.chart .dot { fill: var(--ldm-roxo); stroke: var(--surface); stroke-width: 2; }
.chart .cross { stroke: var(--ldm-cinza); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .bar { fill: var(--ldm-roxo); }
.chart--bars .bar { opacity: .85; }
.chart-tip {
  position: fixed; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .12s;
  display: grid; gap: 1px; padding: 7px 10px; border-radius: 10px;
  background: var(--ldm-tinta); color: #fff; font-size: 12px;
}
.chart-tip span { opacity: .75; }
.chart-tip.is-visible { opacity: 1; }

.table-view { margin-top: 10px; font-size: 13px; }
.table-view summary { cursor: pointer; color: var(--ldm-roxo); font-weight: 500; }
.table-wrap { max-height: 220px; overflow: auto; margin-top: 8px; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 6px 4px; border-bottom: 1px solid var(--ldm-linha); text-align: left; }
.table-wrap th:last-child, .table-wrap td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.hbars { display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: 13px; }
.hbars__label { color: var(--ldm-tinta); }
.hbars__value { font-weight: 600; font-variant-numeric: tabular-nums; }
.hbars__track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: #F1EFF4; overflow: hidden; }
.hbars__fill { display: block; height: 100%; border-radius: 6px; background: var(--ldm-roxo); }

.ranking { display: grid; gap: 12px; padding: 0; list-style: none; }
.ranking li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; }
.ranking__pos { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ldm-lavanda); color: var(--ldm-roxo); font-size: 12px; font-weight: 700; }
.ranking__body { display: grid; gap: 2px; min-width: 0; }
.ranking__body strong { font-size: 13.5px; font-weight: 600; }
.ranking__body small { color: var(--ldm-cinza); font-size: 11.5px; }
.ranking__body .hbars__track { margin-top: 4px; }
.ranking__value { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; align-self: start; }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mini-stats li { display: grid; gap: 2px; padding: 12px 8px; border-radius: var(--r-sm); background: #F7F5FA; text-align: center; }
.mini-stats strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.mini-stats span { color: var(--ldm-cinza); font-size: 11.5px; }


@media (min-width: 640px) {
  .stats-head { grid-template-columns: 1fr auto; align-items: end; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .stats-head .title-1 { font-size: 34px; }
  .stats-head .muted { font-size: 15px; margin-top: 4px; }
  .kpis { gap: 16px; margin-top: 28px; }
  .kpi { padding: 20px; }
  .kpi__value { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
  .stat-card { padding: 22px; }
  .stat-card--wide { grid-column: span 2; }
}

/* Telas sem tab bar (ex.: sugestão) */
body.no-tabbar { padding-bottom: env(safe-area-inset-bottom); }

/* ==========================================================================
   PÁGINAS INSTITUCIONAIS (sobre, contato, termos)
   ========================================================================== */
.container.narrow { max-width: calc(760px + var(--gutter) * 2); }

/* Sobre o projeto */
.about-hero { padding: 12px 0 4px; text-align: center; }
.about-hero__logo { height: 44px; width: auto; margin: 0 auto 20px; }
.about-hero__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.about-hero__lead { margin: 10px auto 0; max-width: 34em; color: var(--ldm-cinza); font-size: 14.5px; }
.about-block { margin-top: 28px; }
.about-block > .title-2 { margin-bottom: 12px; }
.about-block__text { font-size: 14px; margin: -4px 0 12px; }
.steps { display: grid; gap: 10px; padding: 0; list-style: none; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); }
.step__icon { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ldm-lavanda); color: var(--ldm-roxo); }
.step__icon .icon { width: 19px; height: 19px; }
.step strong, .principles strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.step p { margin-top: 2px; color: var(--ldm-cinza); font-size: 13px; }
.principles { display: grid; gap: 14px; }
.principles li { display: flex; gap: 12px; align-items: flex-start; }
.principles .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ldm-roxo); }
.principles span { display: block; margin-top: 2px; color: var(--ldm-cinza); font-size: 13px; }
.about-symbol { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: var(--r-md); background: var(--ldm-lavanda); border-color: transparent; }
.about-symbol img { flex: none; width: 44px; height: auto; }
.about-symbol p { margin-top: 4px; color: var(--ldm-tinta); font-size: 13px; }
.about-cta { margin: 32px 0 12px; padding: 22px 18px; border-radius: var(--r-lg); background: var(--ldm-pessego); text-align: center; }
.about-cta p { margin-top: 4px; color: var(--ldm-cinza); font-size: 13.5px; }
.about-cta__actions { display: grid; gap: 10px; margin-top: 16px; }

/* Fale conosco */
.contact-intro { padding-bottom: 4px; }
.contact-intro .suggest-intro__icon { background: var(--ldm-lavanda); color: var(--ldm-roxo); }
.channels + .channels { margin-top: 12px; }
.contact-hours { display: flex; gap: 8px; align-items: flex-start; margin: 8px 6px 10px; padding-top: 12px; border-top: 1px solid var(--ldm-linha); color: var(--ldm-cinza); font-size: 12.5px; }
.contact-hours .icon { flex: none; margin-top: 1px; }
.contact-brand { margin: 12px 0 8px; padding: 18px; text-align: center; border-radius: var(--r-lg); }
.contact-brand .title-2 { font-size: 15px; }

/* Termos e documentos */
.docs-head { padding-top: 4px; }
.docs-head .muted { font-size: 13.5px; margin-top: 2px; }
.doc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 16px; padding: 4px; border-radius: var(--r-md); background: #F1EFF4; }
.doc-tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 11px; color: var(--ldm-cinza); font-size: 12px; font-weight: 500; }
.doc-tabs button .icon { width: 19px; height: 19px; }
.doc-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ldm-roxo); font-weight: 600; }
.doc { margin: 12px 0 8px; padding: 20px 18px; border-radius: var(--r-md); font-size: 14px; line-height: 1.6; }
.doc__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.doc__meta { margin: 2px 0 6px; color: var(--ldm-cinza); font-size: 12px; }
.doc h3 { margin: 20px 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.doc p + p { margin-top: 8px; }
.doc ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.doc li + li { margin-top: 4px; }
.doc a { color: var(--ldm-roxo); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.doc-table { overflow-x: auto; margin: 8px 0 10px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-table th, .doc-table td { padding: 8px 6px; border-bottom: 1px solid var(--ldm-linha); text-align: left; vertical-align: top; }
.doc-table th { color: var(--ldm-cinza); font-weight: 600; font-size: 12px; }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .principles { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .about-cta__actions { grid-template-columns: auto auto; justify-content: center; }
  .doc-tabs button { flex-direction: row; justify-content: center; font-size: 13.5px; padding: 10px; }
}
@media (min-width: 1024px) {
  .about-hero { padding-top: 8px; }
  .about-hero__logo { height: 56px; }
  .about-hero__title { font-size: 36px; }
  .about-hero__lead { font-size: 16px; }
  .about-block { margin-top: 40px; }
  .contact-intro { position: static; text-align: center; padding-top: 0; margin-bottom: 28px; }
  .contact-intro .suggest-intro__icon { margin: 0 auto 20px; }
  .docs-head .title-1 { font-size: 34px; }
  .doc { padding: 32px 36px; font-size: 15px; }
}
