/* ═══════════════════════════════════════════════════════════
   Ferramentas Fáceis — estilos responsivos
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Cores */
  --azul: #1B2D5B;
  --azul-medio: #1E4DB7;
  --azul-claro: #3A7BD5;
  --laranja: #F47B20;
  --laranja-claro: #FF9A45;
  --laranja-bg: #FFF1E0;
  --branco: #FFFFFF;
  --bg: #FAFAF7;
  --cinza-borda: #ECEAE3;
  --cinza-borda-dark: #DCD7CC;
  --cinza-texto: #64748B;
  --cinza-claro: #94A3B8;
  --cinza-fundo: #F7F4EE;
  --texto: #1B2D5B;
  --sombra: 0 4px 24px rgba(27, 45, 91, .08);
  --sombra-hover: 0 12px 40px rgba(27, 45, 91, .14);

  --container: 1280px;
  --padding-x: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--texto);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: inherit; }

/* ═══════════════ Helpers de visibilidade ═══════════════ */
.hide-mobile { display: initial; }
.show-mobile { display: none; }
.btn-mobile-only { display: none; }
.laranja { color: var(--laranja); }

/* ═══════════════ HEADER ═══════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--cinza-borda);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #F47B20, #FF9A45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(244, 123, 32, .32);
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--azul);
  white-space: nowrap;
}

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.main-nav a:hover {
  color: var(--laranja);
  background: var(--laranja-bg);
}

.header-actions { display: flex; gap: 10px; align-items: center; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--cinza-borda-dark);
  border-radius: 9px;
  color: var(--azul);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-outline:hover { background: var(--cinza-fundo); }
.btn-primary {
  padding: 9px 18px;
  background: var(--azul);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: #112347; transform: translateY(-1px); }
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--cinza-borda);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  cursor: pointer;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  padding: 60px var(--padding-x) 56px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(244, 123, 32, .10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--cinza-borda);
  font-size: 12px;
  color: #475569;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-badge-tag {
  background: var(--laranja);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}
.badge-text-short { display: none; }

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.hero-sub {
  font-size: 17px;
  color: var(--cinza-texto);
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ═══════════════ BUSCA ═══════════════ */
.search-wrap {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--azul);
  box-shadow: 0 20px 60px rgba(27, 45, 91, .10), 0 4px 16px rgba(27, 45, 91, .06);
  transition: box-shadow .2s;
}
.search-box:focus-within {
  box-shadow: 0 24px 70px rgba(27, 45, 91, .15), 0 4px 16px rgba(27, 45, 91, .08);
}
.search-icon { flex-shrink: 0; }
.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 17px;
  color: var(--azul);
  padding: 12px 0;
}
.search-box input::placeholder { color: var(--cinza-claro); }

.search-btn {
  padding: 12px 26px;
  background: var(--laranja);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.search-btn:hover { background: var(--laranja-claro); transform: translateY(-1px); }

.search-sugestoes {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.sugestoes-label { font-size: 12px; color: var(--cinza-claro); font-weight: 500; }
.sugestao {
  font-size: 12.5px;
  color: var(--azul);
  font-weight: 600;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--cinza-borda);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.sugestao:hover { background: var(--cinza-fundo); border-color: var(--cinza-borda-dark); }

/* ═══════════════ CHIPS ═══════════════ */
.chips-section { padding: 8px var(--padding-x) 40px; }
.chips {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.chip {
  will-change: transform;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--cinza-borda);
  background: #fff;
  color: var(--azul);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.chip:hover { border-color: var(--cinza-borda-dark); transform: translateY(-1px); }
.chip-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chip-count {
  margin-left: 6px;
  opacity: .7;
  font-weight: 500;
  font-size: 11px;
}
.chip-all { padding: 8px 14px; }
.chip-all.active, .chip.active {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
}
.chip.active:not(.chip-all) {
  background: var(--pal-bg, var(--laranja-bg));
  color: var(--pal-fg, var(--laranja));
  border: 1.5px solid var(--pal-fg, var(--laranja));
}

/* ═══════════════ SEÇÕES (container) ═══════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--padding-x);
  margin-bottom: 48px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--azul);
}
.section-sub {
  font-size: 13px;
  color: var(--cinza-texto);
  margin-top: 4px;
}
.section-link {
  font-size: 13px;
  color: var(--azul-medio);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { color: var(--laranja); }

/* ═══════════════ POPULARES (grid 3×2) ═══════════════ */
.pop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pop-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--cinza-borda);
  padding: 22px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .2s;
}
.pop-card:hover {
  border-color: transparent;
  box-shadow: var(--sombra-hover);
  transform: translateY(-3px);
}
.pop-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pop-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--cinza-texto);
  font-weight: 600;
}
.pop-name {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.pop-desc {
  font-size: 13px;
  color: var(--cinza-texto);
  line-height: 1.45;
}
.pop-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pop-cta {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pop-bookmark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--cinza-borda);
  background: var(--bg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cinza-claro);
  transition: all .15s;
}
.pop-bookmark:hover { color: var(--laranja); border-color: var(--laranja); background: var(--laranja-bg); }

/* ═══════════════ CATEGORIAS — desktop ═══════════════ */
.cat-grid-desktop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-list-mobile { display: none; }

.cat-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--cinza-borda);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.cat-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cat-card-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--azul);
}
.cat-card-sub {
  font-size: 12px;
  color: var(--cinza-claro);
  font-weight: 500;
}
.cat-card-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s;
}
.cat-item:hover { background: var(--cinza-fundo); }
.cat-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--azul);
  flex: 1;
}
.cat-card-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ═══════════════ CATEGORIAS — mobile ═══════════════ */
.cat-row {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--cinza-borda);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background .15s;
}
.cat-row:active, .cat-row:hover { background: var(--cinza-fundo); }
.cat-row-text { flex: 1; }
.cat-row-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--azul);
  letter-spacing: -0.01em;
}
.cat-row-sub {
  font-size: 11.5px;
  color: var(--cinza-claro);
  font-weight: 500;
  margin-top: 1px;
}

/* ═══════════════ RESULTADOS DE BUSCA ═══════════════ */
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.btn-clear {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--cinza-borda);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--azul);
  cursor: pointer;
  transition: background .15s;
}
.btn-clear:hover { background: var(--cinza-fundo); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--cinza-borda);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all .15s;
}
.result-card:hover {
  border-color: var(--cinza-borda-dark);
  box-shadow: var(--sombra);
  transform: translateY(-1px);
}
.result-text { flex: 1; min-width: 0; }
.result-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--azul);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.result-desc {
  font-size: 12.5px;
  color: var(--cinza-texto);
  margin-top: 2px;
}
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-pop { background: var(--laranja-bg); color: #C9620A; }
.badge-new { background: #E2ECFF; color: var(--azul-medio); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed var(--cinza-borda);
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
  padding: 40px var(--padding-x);
  border-top: 1px solid var(--cinza-borda);
  background: #fff;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  font-size: 13px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--cinza-texto);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 340px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--cinza-texto);
  margin-bottom: 6px;
  transition: color .15s;
  cursor: pointer;
}
.footer-col a:hover { color: var(--laranja); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--cinza-borda);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--cinza-claro);
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════ MODAL ═══════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 60, .55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 22px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  overflow: hidden;
  animation: popIn .25s ease;
  display: flex;
  flex-direction: column;
}
@keyframes popIn {
  from { transform: scale(.93); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-head {
  background: #fff;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--cinza-borda);
}
.modal-head-text { flex: 1; min-width: 0; }
.modal-head-text h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--azul);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.modal-head-text p {
  font-size: 13px;
  color: var(--cinza-texto);
  line-height: 1.4;
}
.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--cinza-fundo);
  border: 1px solid var(--cinza-borda);
  color: var(--cinza-texto);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.modal-close:hover { background: var(--cinza-borda); }
.modal-close svg { pointer-events: none; }

.modal-body {
  padding: 22px 24px 26px;
  overflow-y: auto;
}
.modal-field { margin-bottom: 14px; }
.modal-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--cinza-borda);
  border-radius: 11px;
  font-size: 14px;
  color: var(--texto);
  outline: none;
  transition: border-color .2s;
  background: #fff;
}
.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus { border-color: var(--azul); }
.modal-field textarea { resize: vertical; min-height: 80px; }
.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-calc {
  width: 100%;
  padding: 13px;
  background: linear-gradient(90deg, var(--laranja), var(--laranja-claro));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(244, 123, 32, .35);
  margin-top: .25rem;
}
.btn-calc:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(244, 123, 32, .45); }

.result-box {
  background: linear-gradient(135deg, var(--bg), #EBF3FF);
  border: 1.5px solid var(--cinza-borda);
  border-radius: 13px;
  padding: 18px 20px;
  margin-top: 14px;
  min-height: 56px;
}
.result-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--cinza-texto);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.result-value {
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--azul);
  letter-spacing: -0.01em;
}
.result-sub {
  font-size: 13px;
  color: var(--cinza-texto);
  margin-top: 4px;
}

.file-drop {
  border: 2px dashed var(--cinza-borda);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all .2s;
}
.file-drop:hover, .file-drop.drag {
  border-color: var(--laranja);
  background: var(--laranja-bg);
}

/* spinner pra ferramentas com loading (ex: remover fundo) */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .9s linear infinite; }

/* ═══════════════ BOTTOM NAV ═══════════════ */
#bottom-nav { display: none; }

/* ═══════════════ TOOL ICON (em cards) ═══════════════ */
.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --padding-x: 20px; }

  .hide-mobile { display: none !important; }
  .show-mobile { display: initial; }
  .btn-mobile-only { display: inline-flex; }

  /* Header */
  .header-inner {
    padding: 12px 20px;
    gap: 12px;
  }
  .main-nav { display: none; }
  .btn-fav, .header-actions .btn-primary { display: none; }
  .logo-text { font-size: 17px; }
  .logo-mark { width: 32px; height: 32px; }

  /* Hero */
  .hero { padding: 32px var(--padding-x) 32px; }
  .hero-glow { top: 0; left: 0; right: 0; bottom: 0; width: auto; height: auto; }
  .hero-badge { font-size: 11px; padding: 4px 10px 4px 4px; margin-bottom: 18px; }
  .hero-badge-tag { font-size: 9px; padding: 2px 7px; }
  .badge-text { display: none; }
  .badge-text-short { display: inline; }
  .hero-title { font-size: 38px; line-height: 1.08; margin-bottom: 14px; letter-spacing: -0.02em; }
  .hero-sub { font-size: 14.5px; margin-bottom: 24px; }

  /* Search */
  .search-box {
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border-radius: 14px;
  }
  .search-box input { font-size: 15px; padding: 10px 0; }
  .search-btn { padding: 10px 16px; border-radius: 10px; font-size: 13px; min-width: 44px; }

  .search-sugestoes {
    margin-top: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .search-sugestoes::-webkit-scrollbar { display: none; }
  .sugestoes-label { flex-shrink: 0; }
  .sugestao { flex-shrink: 0; }

  /* Chips */
  .chips-section { padding: 4px 0 24px; }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 var(--padding-x) 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; scroll-snap-align: start; }

  /* Container */
  .container { margin-bottom: 32px; }

  /* Section heads */
  .section-title { font-size: 22px; }
  .section-link { font-size: 12px; }

  /* Populares */
  .pop-grid { grid-template-columns: 1fr; gap: 12px; }
  .pop-card { padding: 16px; border-radius: 14px; }
  .pop-card-foot { margin-top: 0; }

  /* Categorias */
  .cat-grid-desktop { display: none; }
  .cat-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Resultados */
  .results-grid { grid-template-columns: 1fr; }
  .results-head { flex-direction: column; align-items: flex-start; }

  /* Modal */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
    max-width: 100%;
    animation: slideUp .25s ease;
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .modal-head { padding: 18px 20px; }
  .modal-head-text h2 { font-size: 17px; }
  .modal-body { padding: 18px 20px 28px; }
  .modal-row { grid-template-columns: 1fr; gap: 14px; }

  /* Footer */
  footer { padding: 32px var(--padding-x); margin-top: 32px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 8px; }
  .footer-bottom { font-size: 11px; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 24px; }

  /* Body padding-bottom para o bottom nav */
  body { padding-bottom: 80px; }

  /* Bottom nav */
  #bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--cinza-borda);
    padding: 8px 4px max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(27, 45, 91, .06);
    z-index: 90;
  }
  #bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--cinza-claro);
    font-size: 10.5px;
    font-weight: 600;
  }
  #bottom-nav button.active { color: var(--azul); }
  #bottom-nav .bn-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cinza-claro);
    transition: background .15s, color .15s;
  }
  #bottom-nav button.active .bn-icon {
    background: var(--laranja-bg);
    color: var(--laranja);
  }
  #bottom-nav button.active span:last-child { color: var(--azul); font-weight: 700; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero { padding-top: 24px; }
  :root { --padding-x: 16px; }
}

/* ═══════════════ Acessibilidade & Performance ═══════════════ */
:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Performance: contenção de layout */
.pop-card, .cat-card, .result-card, .chip {
  contain: layout style;
}
/* Melhor contraste para SEO/acessibilidade */
.hero-sub { color: #4A5568; }
.cinza-texto, .result-desc, .pop-desc { color: #4A5568; }
/* Smooth scroll para âncoras */
* { scroll-behavior: smooth; }

/* ═══════════════ NEWSLETTER ═══════════════ */
.newsletter-section {
  background: linear-gradient(135deg, #1B2D5B 0%, #162348 60%, #1E3A6A 100%);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(244,123,32,.15) 0%, transparent 65%);
  pointer-events: none;
}
.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(58,123,213,.18) 0%, transparent 65%);
  pointer-events: none;
}
.newsletter-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.newsletter-icon {
  width: 64px; height: 64px;
  background: rgba(244,123,32,.15);
  border: 1px solid rgba(244,123,32,.3);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.newsletter-text { flex: 1; }
.newsletter-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.newsletter-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  max-width: 400px;
}
.newsletter-form { flex-shrink: 0; min-width: 300px; }
.newsletter-fields {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 11px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
  min-width: 0;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-input:focus { border-color: var(--laranja); background: rgba(255,255,255,.12); }
.newsletter-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--laranja);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(244,123,32,.4);
}
.newsletter-btn:hover { background: #ff9a45; transform: translateY(-1px); }
.newsletter-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.newsletter-lgpd {
  display: flex; align-items: center; gap: 5px;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
}
.newsletter-success {
  display: flex; align-items: center; gap: 14px;
  background: rgba(56,161,105,.15);
  border: 1px solid rgba(56,161,105,.3);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
}
.newsletter-success-icon { font-size: 2rem; flex-shrink: 0; }
.newsletter-success strong { display: block; font-size: .95rem; margin-bottom: 3px; }
.newsletter-success p { font-size: .82rem; color: rgba(255,255,255,.65); margin: 0; }

/* ── Responsivo newsletter ── */
@media (max-width: 860px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .newsletter-icon { margin: 0 auto; }
  .newsletter-sub { max-width: 100%; margin: 0 auto; }
  .newsletter-form { min-width: 0; width: 100%; }
  .newsletter-lgpd { justify-content: center; }
}
@media (max-width: 480px) {
  .newsletter-fields { flex-direction: column; }
  .newsletter-btn { width: 100%; justify-content: center; }
  .newsletter-section { padding: 48px 20px; }
}
