/* Fontes hospedadas no proprio Guia (licenca SIL OFL, em /fonts): mais rapido e sem
   enviar o IP de quem le para servicos de terceiros. Subconjunto latino (inclui
   todos os acentos do portugues). */
@font-face { font-family: "Literata"; src: url("/fonts/literata-var.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Paleta "fim de tarde": linho, areia, terracota e cafe. Tirada das fotos do Guia,
     para fugir do verde-salvia generico. */
  --bg: #FBF6EF;
  --panel: #FFFFFF;
  --cream: #F5EDE2;
  --secondary: #F1E6D8;
  --text: #2E2521;
  --muted: #6F6158;
  --border: #E8DCCD;
  --primary: #9C4F33;
  --primary-dark: #3B2B24;
  --sage: #CDB49B;
  --accent: #C0714F;
  --amber: #C0714F;
  --amber-bg: #FBEEDC;
  --red: #b0281c;
  --red-bg: #fbe6e3;
  --green: #5E7A55;
  --green-bg: #EEF2E7;
  --on-dark: #F6EEE3;
  --on-dark-soft: #D9C2AA;
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-sans: "Figtree", "Segoe UI", system-ui, Arial, sans-serif;
  --sidebar-width: 270px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 600;
}

a {
  color: var(--primary-dark);
}

#app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-close {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 4px;
  margin-bottom: 12px;
}

.sidebar-close:hover {
  color: var(--primary-dark);
}

.sidebar-brand {
  display: block;
  text-decoration: none;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-brand-subtitle {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}

.sidebar-search {
  margin-bottom: 16px;
  position: relative;
}

.sidebar-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.sidebar-search-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 9px 0;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

.sidebar-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10;
  max-height: 320px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
}

.sidebar-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}

.sidebar-search-result:hover {
  background: var(--bg);
}

.sidebar-search-result-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-search-result-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-search-result-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.sidebar-search-result-category {
  font-size: 11px;
  color: var(--muted);
}

.sidebar-search-empty {
  padding: 12px 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-section-title {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

.sidebar-link:hover {
  background: var(--bg);
}

.sidebar-link.active {
  background: var(--primary);
  color: white;
}

.sidebar-link.highlight:not(.active) {
  color: var(--amber);
  font-weight: 600;
}

.sidebar-link-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-link.active .sidebar-link-number {
  background: rgba(255, 255, 255, 0.3);
}

.sidebar-link-checker {
  border: 1px solid var(--primary);
  margin: 6px 0;
}

.sidebar-category {
  margin-bottom: 4px;
}

.sidebar-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.sidebar-category-header:hover {
  background: var(--bg);
}

.sidebar-category-header.active {
  background: var(--primary);
  color: white;
}

.sidebar-category-header.coming-soon {
  color: var(--muted);
  font-weight: 500;
}

.sidebar-category-icon {
  font-size: 15px;
}

.sidebar-category-caret {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.sidebar-category-header.active .sidebar-category-caret {
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-sublink {
  margin-left: 14px;
  font-weight: 400;
  font-size: 13px;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 2px 8px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  font-size: 22px;
  color: var(--primary-dark);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(59, 43, 36, 0.14);
}

.menu-toggle-hidden {
  display: none !important;
}

/* Content */

.content {
  flex: 1;
  min-width: 0;
  padding: 48px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content > section {
  width: 100%;
  max-width: 720px;
}

.back-button {
  width: 100%;
  max-width: 720px;
  text-align: left;
  display: block;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 0 0 16px;
  font-family: inherit;
}

.back-button:hover {
  color: var(--primary-dark);
}

/* Hero */

.hero-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-text-main {
  flex: 1.4;
  min-width: 0;
}

.hero-kicker {
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.hero h1 {
  font-size: 26px;
  line-height: 1.16;
  margin: 0 0 10px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.hero-text {
  min-width: 0;
}

.hero-photo {
  position: relative;
  flex: 1;
  max-width: 148px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg);
  align-self: flex-start;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 14%),
    linear-gradient(to top, var(--bg) 0%, transparent 22%),
    linear-gradient(to left, var(--bg) 0%, transparent 18%),
    linear-gradient(to right, var(--bg) 0%, transparent 34%);
}

@media (min-width: 480px) {
  .hero-photo {
    max-width: 180px;
  }
}

@media (min-width: 640px) {
  .hero-top-row {
    gap: 28px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-photo {
    max-width: 220px;
  }
}

/* Faixa Entender / Prevenir / Reconhecer / Agir */

.tagline-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0 0;
  padding: 14px 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.tagline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  padding: 0 4px;
  position: relative;
}

.tagline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.tagline-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
}

/* Botoes de acao (home) */

.home-cta-primary {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--primary);
  border-radius: 18px;
  padding: 16px 18px;
  text-decoration: none;
  margin-top: 14px;
}

.home-cta-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-cta-badge svg {
  width: 21px;
  height: 21px;
  stroke: #fff;
}

.home-cta-primary .home-cta-text {
  flex: 1;
  min-width: 0;
}

.home-cta-primary strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.home-cta-primary span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  margin-top: 2px;
}

.home-cta-primary .home-cta-chev {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.home-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.home-cta-secondary {
  background: var(--secondary);
  border-radius: 16px;
  padding: 15px 14px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}

.home-cta-secondary.peach {
  background: var(--amber-bg);
}

.home-cta-secondary .top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.home-cta-secondary .badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-cta-secondary .badge svg {
  width: 17px;
  height: 17px;
  stroke: var(--primary-dark);
}

.home-cta-secondary .chev {
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  margin-top: 8px;
}

.home-cta-secondary strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.home-cta-secondary p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.ai-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 2px 6px;
}

.home-cta-secondary .trial-lock-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 13px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.presentation {
  margin-top: 48px;
}

.author-byline {
  color: var(--muted);
  font-size: 14px;
}

/* Autenticacao */

.hidden {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

@media (max-width: 480px) {
  .auth-shell { padding: 16px; }
}

.auth-status {
  color: var(--muted);
}

.auth-box {
  width: 100%;
  max-width: 384px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 26px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 18px 44px rgba(59, 43, 36, 0.12);
}

/* so a tela de login tem hero flush no topo; as demais (esqueci senha, definir
   senha, paywall) mantem o padding padrao do cartao */
.auth-box:has(.auth-hero) {
  padding: 0;
}

.auth-box-body {
  padding: 20px 22px 26px;
}

/* Hero da tela de entrada (foto mae + bebe) */
.auth-hero {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.auth-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 40, 30, 0.72) 0%, rgba(24, 40, 30, 0.18) 42%, rgba(24, 40, 30, 0) 70%);
}
.auth-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.auth-hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.auth-hero-title {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.08;
  font-weight: 600;
  color: #fff;
}

.auth-box h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}

.auth-box form {
  text-align: left;
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  width: 100%;
  max-width: 1080px;
}

.auth-marketing {
  display: none;
  flex: 1 1 480px;
  max-width: 520px;
  flex-direction: column;
  gap: 20px;
}

.auth-badge {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--secondary);
  border-radius: 999px;
  padding: 7px 16px;
}

.auth-marketing-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
}

.auth-marketing-title-primary {
  color: var(--primary-dark);
}

.auth-marketing-title-accent {
  color: var(--primary);
}

.auth-marketing-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 440px;
}

.auth-marketing-rule {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.auth-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--secondary);
  font-size: 18px;
}

.auth-feature-list strong {
  font-size: 14px;
  color: var(--primary-dark);
}

.auth-feature-list p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-illustration {
  position: relative;
  height: 180px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--secondary), var(--bg));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.auth-float {
  position: absolute;
  font-size: 26px;
  opacity: 0.85;
  animation: authFloat 5s ease-in-out infinite;
}

.auth-float-1 { top: 14px; left: 12%; animation-delay: 0s; }
.auth-float-2 { top: 30px; right: 16%; animation-delay: 0.6s; }
.auth-float-3 { bottom: 20px; left: 18%; animation-delay: 1.2s; }
.auth-float-4 { bottom: 34px; right: 10%; animation-delay: 1.8s; }
.auth-float-5 { top: 50%; left: 6%; animation-delay: 2.4s; }
.auth-float-6 { top: 46%; right: 6%; animation-delay: 3s; }

@keyframes authFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.auth-marketing-tagline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  color: var(--primary-dark);
  margin: 0;
}

.auth-marketing-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--secondary);
  border-radius: 14px;
  padding: 14px 16px;
}

.auth-marketing-highlight span {
  font-size: 22px;
}

.auth-marketing-highlight p {
  margin: 0;
  font-size: 13px;
  color: var(--primary-dark);
}

@media (min-width: 1000px) {
  .auth-marketing {
    display: flex;
  }
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
}

.auth-field input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
}

.auth-message {
  font-size: 13px;
  margin: 8px 0;
}

.auth-message.error {
  color: var(--red);
}

.auth-message.info {
  color: var(--primary-dark);
}

.auth-submit {
  width: 100%;
  text-align: center;
  display: block;
}

.auth-links {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Preco ancora "De X por Y" - os valores vem de public/js/config.js */
.price-anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 18px 0 16px;
}
.price-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #D98E68 0%, #C0714F 100%);
  padding: 4px 12px;
  border-radius: 999px;
}
.price-old {
  font-size: 15px;
  color: var(--muted);
  text-decoration: line-through;
  margin-top: 4px;
}
.price-new {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-dark);
}

.auth-logout-fixed {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
}
/* Esconde o "Sair" fixo fora da tela inicial (fica so o "Voltar"). */
.auth-logout-fixed.logout-route-hidden {
  display: none !important;
}

.auth-trial-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: none;
  text-decoration: none;
  background: linear-gradient(135deg, #D98E68 0%, #C0714F 100%);
  box-shadow: 0 8px 20px rgba(236, 122, 28, 0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.auth-trial-cta span {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.auth-trial-cta small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}
.auth-trial-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(236, 122, 28, 0.4);
}

/* Oferta na tela de entrada (leva ao checkout com cupom) */
.auth-offer {
  display: block;
  text-decoration: none;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--primary);
  background: var(--secondary);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.auth-offer:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59, 43, 36, 0.14);
}
.auth-offer-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #C0714F;
  margin-bottom: 4px;
}
.auth-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.auth-offer-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
}
.auth-offer-price { white-space: nowrap; }
.auth-offer-price s { color: var(--muted); font-size: 13px; margin-right: 5px; }
.auth-offer-price strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--primary-dark);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  color: var(--muted);
  font-size: 12.5px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Instalar como app (PWA) */

.pwa-install-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-width: 480px;
  margin: 0 auto;
}

.pwa-install-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
}

.pwa-install-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.pwa-install-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.pwa-install-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.pwa-install-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pwa-install-banner {
    flex-wrap: wrap;
  }

  .pwa-install-actions {
    flex-direction: row;
    width: 100%;
    margin-left: 42px;
  }

  .pwa-install-actions .btn {
    flex: 1;
  }
}

/* Quando so' ha' instrucoes (sem botao real de instalar): texto em destaque, */
/* botao "Agora nao" discreto, para nao parecer clicavel como se instalasse. */

.pwa-install-info-only .pwa-install-text p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.pwa-install-info-only .pwa-install-actions {
  flex-direction: row;
  justify-content: flex-end;
}

.pwa-install-info-only #pwa-install-dismiss {
  padding: 4px 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  box-shadow: none;
  text-decoration: underline;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pwa-install-info-only .pwa-install-actions {
    margin-left: 42px;
    justify-content: flex-start;
  }
}

/* Teste gratuito */

.trial-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--secondary);
  border-bottom: 1px solid var(--sage);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.trial-banner-btn {
  padding: 8px 18px;
  font-size: 13px;
  flex-shrink: 0;
}

.trial-lock-box {
  margin: 28px 0;
  padding: 24px;
  border-radius: 12px;
  background: var(--secondary);
  border: 1px solid var(--sage);
  text-align: center;
}

.trial-lock-box h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.trial-lock-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.trial-lock-icon {
  margin-left: auto;
}

.trial-lock-badge {
  color: var(--primary-dark);
  background: var(--secondary);
}

/* Pullquote */

.pullquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: rgba(156, 79, 51, 0.06);
  font-size: 17px;
  font-style: italic;
  color: var(--primary-dark);
}

/* Chapters grid on home */

.chapters-grid {
  margin-top: 56px;
}

/* Temas em destaque (home) */

.topic-grid-section {
  margin-top: 40px;
}

.topic-grid-section h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.topic-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.topic-tile:hover {
  border-color: var(--primary);
}

.topic-tile svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
}

.topic-tile span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card de citacao (home) */

.home-quote-card {
  position: relative;
  background: var(--secondary);
  border-radius: 18px;
  padding: 18px 18px 20px;
  display: flex;
  gap: 14px;
  overflow: hidden;
  margin-top: 40px;
}

.home-quote-card .badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-quote-card .badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-dark);
}

.home-quote-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--primary-dark);
  margin: 0;
  font-style: italic;
  max-width: 82%;
}

.home-quote-card .sprig {
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: 68px;
  height: 68px;
  stroke: var(--primary);
  opacity: 0.35;
}

/* Busca no guia (home) */

.guide-search {
  margin-top: 40px;
}

.guide-search-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 4px;
}

.guide-search-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 14px;
}

.guide-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.guide-search-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.guide-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

.chip-row-wrap {
  margin-top: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.guide-search-results {
  margin-top: 20px;
}

.guide-search-count {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.guide-search-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.guide-search-result-category {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary-dark);
}

.chapter-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
}

.chapter-card:hover {
  border-color: var(--primary);
}

.chapter-card.highlight {
  border-color: var(--amber);
  background: var(--amber-bg);
}

.chapter-card-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chapter-card-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.chapter-card-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Category cards (home) */

.category-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  position: relative;
}

.category-card:hover {
  border-color: var(--primary);
}

.category-card.coming-soon {
  opacity: 0.65;
}

.category-card-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.category-card-body {
  padding-right: 64px;
}

.category-card-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.category-card-body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.category-card .sidebar-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin-left: 0;
}

/* Category page */

.category-page .chapter-card-list {
  margin: 28px 0;
}

.category-checker-link {
  margin-top: 8px;
}

.coming-soon-box {
  margin: 28px 0;
  padding: 24px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}

.draft-banner {
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber);
  color: #96691d;
  font-weight: 600;
  font-size: 14px;
}

/* Chapter page */

.chapter-kicker {
  color: var(--primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0;
}

.chapter-page h1 {
  margin: 6px 0 16px;
  font-size: 32px;
}

.chapter-intro {
  font-size: 18px;
  color: var(--muted);
}

.chapter-section {
  margin: 32px 0;
}

.chapter-section h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.chapter-section p:not([class]),
.chapter-page > p:not([class]),
.category-page > p:not([class]) {
  text-indent: 1.5em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.critical-section {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--red-bg);
  border-left: 4px solid var(--red);
}

.highlight-page h1 {
  color: var(--amber);
}

/* Summary / alert boxes */

.summary-box, .alert-box, .disclaimer-box {
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0;
}

.summary-box {
  background: var(--green-bg);
  border: 1px solid rgba(156, 79, 51, 0.3);
}

.summary-box h3 {
  color: var(--green);
  margin-top: 0;
}

.alert-box {
  background: var(--red-bg);
  border: 1px solid rgba(217, 70, 60, 0.3);
}

.alert-box h3 {
  color: var(--red);
  margin-top: 0;
}

.disclaimer-box {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.disclaimer-box.small {
  margin-top: 24px;
}

.summary-box ul, .alert-box ul {
  margin: 0;
  padding-left: 20px;
}

/* Prancha de comunicacao (CAA) */

.caa-board {
  margin: 32px 0;
  padding: 24px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.caa-board h3 {
  margin-top: 0;
}

.caa-board-note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.caa-board-group {
  margin-bottom: 20px;
}

.caa-board-group h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  margin: 0 0 10px;
}

.caa-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.caa-board-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  text-align: center;
  break-inside: avoid;
}

.caa-board-img {
  width: 40px;
  height: 40px;
  display: block;
}

.caa-board-label {
  font-size: 13px;
  font-weight: 600;
}

.caa-board-credit {
  margin: 16px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.caa-board-tips {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.caa-board-tips h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.caa-board-tips ul {
  margin: 0;
  padding-left: 20px;
}

.caa-board-tips li {
  margin-bottom: 6px;
}

.caa-board-example {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.caa-board-example h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.caa-board-example p {
  margin: 0 0 4px;
}

.caa-board-example .chapter-image-figure {
  margin: 12px 0 0;
}

@media print {
  .sidebar, .menu-toggle, .chapter-nav, .btn, .auth-logout-fixed, .pwa-install-banner {
    display: none !important;
  }

  .caa-board-card {
    break-inside: avoid;
  }
}

.summary-box li, .alert-box li {
  margin-bottom: 8px;
}

/* Video slots */

.video-slot {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-slot-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border-style: dashed;
}

.video-slot-icon {
  font-size: 28px;
}

.video-slot-label {
  font-weight: 600;
  font-size: 14px;
}

.video-slot-hint {
  font-size: 12px;
  color: var(--muted);
}

.video-slot-embed .video-slot-label {
  padding: 12px 16px 0;
}

.video-frame-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-frame-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-slot-embed video {
  width: 100%;
  display: block;
  padding: 12px 16px 16px;
}

/* Illustrations */

.illustration-slot {
  margin: 20px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  overflow: hidden;
}

.illustration-canvas {
  padding: 18px 20px 4px;
}

.illustration-canvas svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 220px;
}

.illustration-label {
  padding: 10px 20px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.illus-caption {
  font-size: 13px;
  fill: var(--muted);
  font-weight: 600;
  font-family: inherit;
}

/* Chapter reference images */

.chapter-image-figure {
  margin: 20px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
}

.chapter-image-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.chapter-image-caption {
  padding: 10px 20px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.illus-caption-small {
  font-size: 11px;
  fill: var(--muted);
  font-family: inherit;
}

.illus-caption-critical {
  fill: var(--red);
}

/* Breathing rate comparison */

.illus-chest-normal {
  animation: illusBreatheSlow 3s ease-in-out infinite;
  transform-origin: 0px 150px;
}

.illus-chest-fast {
  animation: illusBreatheFast 0.9s ease-in-out infinite;
  transform-origin: 240px 150px;
}

@keyframes illusBreatheSlow {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.1); }
}

@keyframes illusBreatheFast {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.22); }
}

@keyframes illusBreatheParam {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.16); }
}

/* Tabela de frequencia respiratoria por idade + comparacao animada */

.breathing-rate-block {
  text-align: left;
}

.breathing-rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 12px;
  font-size: 14px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
}

.breathing-rate-table th {
  background: var(--primary-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  text-align: left;
  line-height: 1.3;
}

.breathing-rate-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.breathing-rate-age-range {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1px;
}

.breathing-rate-table tbody tr:last-child td {
  border-bottom: none;
}

.breathing-rate-table tbody tr:nth-child(even) {
  background: var(--panel);
}

.breathing-rate-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 20px;
}

.breathing-compare-heading {
  margin: 0 0 10px;
  font-size: 15px;
  text-align: center;
}

.breathing-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 10px;
}

.breathing-legend-term {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  max-width: 200px;
}

.breathing-legend-term strong {
  font-size: 13px;
  color: var(--primary-dark);
}

.breathing-legend-term span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.breathing-compare-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breathing-compare-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.breathing-compare-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.breathing-compare-summary::-webkit-details-marker {
  display: none;
}

.breathing-compare-summary::before {
  content: "▸";
  color: var(--primary);
  font-size: 12px;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.breathing-compare-item[open] .breathing-compare-summary::before {
  transform: rotate(90deg);
}

.breathing-compare-age {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}

.breathing-compare-click-hint {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.breathing-compare-item[open] .breathing-compare-click-hint {
  display: none;
}

.breathing-compare-age-range {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.breathing-compare-body {
  padding: 4px 16px 14px;
  border-top: 1px solid var(--border);
  overflow: visible;
}

.breathing-compare-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 155px;
  display: block;
  margin: 8px auto 0;
  overflow: visible;
}

@media (max-width: 480px) {
  .breathing-compare-click-hint {
    display: none;
  }

  .breathing-legend {
    gap: 18px;
  }
}

/* Tabela do calendario vacinal */

.vaccine-table-block {
  margin: 20px 0;
}

.vaccine-table-heading {
  margin: 0 0 10px;
  font-size: 15px;
}

.vaccine-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
}

.vaccine-table th {
  background: var(--primary-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  text-align: left;
  line-height: 1.3;
}

.vaccine-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}

.vaccine-table-age {
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  vertical-align: top;
}

.vaccine-table tbody tr:last-child td {
  border-bottom: none;
}

.vaccine-table tbody tr:nth-child(even) {
  background: var(--panel);
}

.vaccine-table-note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

@media (max-width: 480px) {
  .vaccine-table-block {
    overflow-x: auto;
  }
}

/* Tiragem */

.illus-tiragem-spot {
  animation: illusRetract 2.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.illus-delay-1 { animation-delay: 0.15s; }
.illus-delay-2 { animation-delay: 0.3s; }

@keyframes illusRetract {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.55; }
  50% { transform: scale(0.6) translateY(4px); opacity: 1; }
}

/* Batimento de asa nasal */

.illus-nostril {
  animation: illusFlare 1.6s ease-in-out infinite;
  transform-box: fill-box;
}

.illus-nostril-left {
  transform-origin: right center;
}

.illus-nostril-right {
  transform-origin: left center;
}

@keyframes illusFlare {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.45); }
}

/* Gemencia e cabeceio */

.illus-head-bob {
  animation: illusHeadBob 1.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes illusHeadBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(4deg); }
}

.illus-sound-wave {
  animation: illusSoundWave 1.8s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.illus-delay-0 { animation-delay: 0s; }

@keyframes illusSoundWave {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Cianose */

.illus-alert-ring {
  animation: illusAlertPulse 1.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes illusAlertPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.95); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* Asma: crise vs controlada */

.illus-asthma-muscle, .illus-asthma-airway {
  animation: illusAsthmaSqueeze 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes illusAsthmaSqueeze {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.82); }
}

/* Chapter nav */

.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.chapter-nav-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 14px;
  max-width: 45%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(59, 43, 36, 0.08);
}

.chapter-nav-extra {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Symptom checker */

.checker-result {
  border-radius: 12px;
  padding: 20px 22px;
  margin: 24px 0;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.checker-result h3 {
  margin-top: 0;
}

.checker-result-action {
  font-weight: 700;
  margin-bottom: 0;
}

.checker-result.level-green {
  background: var(--green-bg);
  border-color: var(--green);
  color: var(--green);
}

.checker-result.level-yellow {
  background: var(--amber-bg);
  border-color: var(--amber);
  color: #96691d;
}

.checker-result.level-red {
  background: var(--red-bg);
  border-color: var(--red);
  color: var(--red);
}

.checker-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checker-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.checker-group legend {
  font-weight: 700;
  padding: 0 6px;
}

.checker-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
}

.checker-item input {
  margin-top: 3px;
}

#checkerReset {
  margin-top: 20px;
}

/* AI search */

.search-form {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.search-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
}

.search-form input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.search-status {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0;
}

.search-answer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 12px 0 24px;
  line-height: 1.6;
}

.search-answer p {
  margin: 0 0 12px;
  white-space: pre-wrap;
}

.search-model-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 4px;
}

.search-sources-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 16px 0 6px;
}

.search-sources-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
}

.search-sources-list li {
  margin-bottom: 4px;
}

.search-turn-question {
  font-weight: 600;
}

.search-reset-link {
  display: inline-block;
  margin: 0 0 24px;
  font-size: 14px;
}

/* Desktop / telas largas: fundo decorativo + conteudo como "cartao" central */

@media (min-width: 901px) {
  body {
    background: var(--bg);
  }

  .content {
    max-width: 1000px;
    margin: 32px auto 56px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 30px 60px -30px rgba(59, 43, 36, 0.18), 0 2px 10px rgba(59, 43, 36, 0.05);
    padding: 56px 64px 72px;
  }

  .category-card-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  .category-card {
    padding: 22px;
  }

  .chapter-card {
    padding: 20px;
  }
}

/* Responsive */

@media (max-width: 900px) {
  body {
    background: var(--bg);
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .back-button {
    position: fixed;
    top: 14px;
    left: 70px;
    z-index: 50;
    width: auto;
    max-width: calc(100vw - 230px);
    margin: 0;
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(59, 43, 36, 0.14);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .trial-banner {
    padding-top: 60px;
    flex-direction: column;
    gap: 8px;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: flex;
  }

  .content {
    padding: 72px 16px 60px;
  }

  .tagline-item {
    font-size: 10.5px;
  }

  .home-cta-secondary {
    padding: 13px 12px;
    gap: 16px;
  }

  .home-cta-secondary strong {
    font-size: 13px;
  }

  .home-cta-secondary p {
    font-size: 11px;
  }

  .presentation {
    margin-top: 32px;
  }

  .chapters-grid {
    margin-top: 36px;
  }

  .category-card {
    flex-direction: column;
    padding: 14px;
  }

  .category-card-body {
    padding-right: 0;
  }

  .category-card .sidebar-badge {
    position: static;
    display: inline-block;
    margin-top: 8px;
  }
}

/* ============================================================
   HOME V2 - app de produto (mobile-first)
   Cabeçalho verde da marca, busca, ações flutuantes, temas em
   ícones SVG. Convive com a sidebar (gaveta no celular).
   ============================================================ */

/* remove o respiro padrao do .content so na home, pro header verde encostar no topo */
.content:has(.home2) {
  padding: 0 0 90px;
  align-items: stretch;
}
.content:has(.home2) > .home2 {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.home2 { color: var(--text); }

/* Cabeçalho verde */
.home2-hd {
  position: relative;
  background: var(--primary-dark);
  color: #F6EEE3;
  padding: 26px 22px 30px;
  border-radius: 0 0 28px 28px;
}
.home2-avatar {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
}
.home2-kick {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #D9B99B;
  max-width: 78%;
}
.home2-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.14;
  margin: 0 0 6px;
  color: #FBF6EF;
}
.home2-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #D8C4B0;
}
.home2-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FBF6EF;
  border-radius: 14px;
  padding: 12px 14px;
  color: #8A7B70;
}
.home2-search svg { width: 19px; height: 19px; flex-shrink: 0; }
.home2-search input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}
.home2-search input::placeholder { color: #A89A8F; }

/* Ações flutuando sobre o verde */
.home2-float {
  display: flex;
  gap: 12px;
  margin: -22px 16px 0;
  position: relative;
  z-index: 2;
}
.home2-act {
  flex: 1;
  min-width: 0;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 26px rgba(59, 43, 36, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home2-act:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(59, 43, 36, 0.16); }
.home2-act-ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home2-act.amber .home2-act-ic { background: var(--amber-bg); color: #9a6a1c; }
.home2-act-ic svg { width: 21px; height: 21px; }
.home2-act b { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.home2-act-sub { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.home2-act-lock { position: absolute; top: 12px; right: 12px; font-size: 13px; }
.home2-act .ai-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--amber-bg);
  color: #9a6a1c;
  padding: 1px 5px;
  border-radius: 6px;
  vertical-align: 1px;
}

.home2-browse { padding: 0 16px; }

/* Destaque editorial */
.home2-feat {
  display: block;
  position: relative;
  margin-top: 22px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(59, 43, 36, 0.12);
}
.home2-feat img { width: 100%; height: 158px; object-fit: cover; object-position: center 26%; display: block; }
.home2-feat-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(20, 30, 25, 0.82) 6%, rgba(20, 30, 25, 0.12) 72%);
}
.home2-feat-tx {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 68%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  gap: 6px;
}
.home2-feat-tag {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #e7b87f;
}
.home2-feat-tx strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.home2-feat-go { font-size: 12.5px; font-weight: 600; margin-top: 4px; }

/* Seções */
.home2-sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 26px 2px 14px;
}
.home2-sec h2 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0; }

/* Grade de temas */
.home2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
}
.home2-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.home2-tile-ic {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 43, 36, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.home2-tile:hover .home2-tile-ic { transform: translateY(-2px); background: var(--secondary); box-shadow: 0 8px 16px rgba(59, 43, 36, 0.1); }
.home2-tile-ic svg { width: 26px; height: 26px; }
.home2-tile-name { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2; }
.home2-tile.is-soon { opacity: 0.55; }
.home2-tile-soon { font-size: 9px; color: var(--muted); }

/* Citação */
.home2-quote {
  margin-top: 28px;
  background: var(--secondary);
  border-radius: 18px;
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home2-quote svg { width: 26px; height: 26px; color: var(--primary); }
.home2-quote p { margin: 0; font-family: var(--font-display); font-size: 16.5px; line-height: 1.4; color: var(--primary-dark); }

.home2-disclaimer { margin-top: 26px; }

.home2-result-ic svg { width: 22px; height: 22px; color: var(--primary); }

/* Busca ativa ocupa a largura da coluna */
.content:has(.home2) #guideSearchResults { padding: 20px 16px 0; }

@media (min-width: 720px) {
  .home2-hd { padding: 30px 30px 34px; border-radius: 0 0 32px 32px; }
  .home2-title { font-size: 30px; }
  .home2-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 900px) {
  .home2-hd { padding-top: 62px; }
}

/* ============================================================
   BARRA DE NAVEGAÇÃO INFERIOR (mobile) - app de produto
   ============================================================ */
.bottom-nav { display: none; }

@media (max-width: 900px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    justify-content: space-around;
    align-items: stretch;
    background: rgba(251, 247, 236, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 7px 0 max(9px, env(safe-area-inset-bottom));
  }
  .bottom-nav-item {
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
  }
  .bottom-nav-item svg { width: 23px; height: 23px; }
  .bottom-nav-item.on { color: var(--primary); }

  /* o "Menu" da barra substitui o hamburguer flutuante no celular */
  .menu-toggle { display: none !important; }

  /* espaço pro conteúdo não ficar atrás da barra */
  .content { padding-bottom: 88px; }
}

/* ============================================================
   PÁGINA DE CATEGORIA V2
   ============================================================ */
.content:has(.cat2) { padding: 0 0 88px; align-items: stretch; }
.content:has(.cat2) > .cat2 { max-width: 680px; width: 100%; margin: 0 auto; }
.content:has(.cat2) .back-button { display: none; } /* header traz o proprio voltar */

.cat2-hd {
  position: relative;
  background: var(--primary-dark);
  color: #F6EEE3;
  padding: 20px 22px 26px;
  border-radius: 0 0 26px 26px;
}
.cat2-back {
  position: absolute;
  top: 16px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #F6EEE3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat2-back svg { width: 20px; height: 20px; }
.cat2-back:hover { background: rgba(255, 255, 255, 0.18); }
.cat2-hd-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  color: #EBD8C5;
  margin: 44px 0 14px;
}
.cat2-hd-ic svg { width: 28px; height: 28px; }
.cat2-kick {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #D9B99B;
}
.cat2-hd h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.16;
  margin: 0 0 8px;
  color: #FBF6EF;
}
.cat2-sub { margin: 0; font-size: 13.5px; line-height: 1.5; color: #D8C4B0; }

.cat2-body { padding: 20px 18px 0; }
.cat2-intro p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; }
.cat2-pullquote {
  margin: 18px 0;
  padding: 16px 18px;
  background: var(--secondary);
  border-radius: 14px;
  border-left: 3px solid var(--primary);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.45;
  color: var(--primary-dark);
}
.cat2-list-label {
  margin: 22px 2px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cat2-chapters { display: flex; flex-direction: column; gap: 10px; }
.cat2-ch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.cat2-ch:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(59, 43, 36, 0.09); border-color: var(--sage); }
.cat2-ch.is-highlight { border-color: var(--sage); background: var(--secondary); }
.cat2-ch-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.cat2-ch-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat2-ch-body strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.cat2-ch-intro {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat2-ch-chev { flex-shrink: 0; width: 18px; height: 18px; color: var(--muted); }

.cat2-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 18px;
  background: var(--secondary);
  color: var(--primary-dark);
  border-radius: 13px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.cat2-cta:hover { background: var(--sage); }
.cat2-next {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.cat2-next strong { font-family: var(--font-display); font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--primary-dark); }
.cat2-next:hover { border-color: var(--sage); background: var(--panel); }

@media (min-width: 720px) {
  .cat2-hd { padding: 24px 30px 30px; }
  .cat2-hd h1 { font-size: 28px; }
  .cat2-body { padding: 24px 30px 0; }
}

/* ============================================================
   PÁGINA DE CAPÍTULO V2 (leitura)
   Mantem os blocos internos (.chapter-section, .alert-box, etc.),
   so troca o cabecalho e a coluna de leitura.
   ============================================================ */
.content:has(.chap2) { padding: 0 0 88px; align-items: stretch; }
.content:has(.chap2) > .chap2 { max-width: 760px; width: 100%; margin: 0 auto; }
.content:has(.chap2) .back-button { display: none; }

.chap2-hd {
  position: relative;
  background: var(--primary-dark);
  color: #F6EEE3;
  padding: 20px 22px 24px;
  border-radius: 0 0 24px 24px;
}
.chap2-hd .cat2-back { position: absolute; top: 16px; left: 14px; }
.chap2-kick {
  margin: 44px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #D9B99B;
}
.chap2-kick a { color: #EBD8C5; text-decoration: none; }
.chap2-kick a:hover { text-decoration: underline; }
.chap2-hd h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
  color: #FBF6EF;
}

.chap2-body {
  padding: 22px 20px 0;
  max-width: 660px;
  margin: 0 auto;
}
.chap2-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 22px;
  font-weight: 500;
}
/* leitura confortavel para o corpo */
.chap2-body p { font-size: 16px; line-height: 1.72; }
.chap2-body .chapter-section { margin: 24px 0; }
.chap2-body .chapter-section h3,
.chap2-body h3 { font-size: 19px; margin: 26px 0 10px; }
.chap2-body ul, .chap2-body ol { line-height: 1.7; }

/* caixas com respiro/arredondamento V2 (sem reescrever a marcacao) */
.chap2-body .alert-box,
.chap2-body .summary-box,
.chap2-body .trial-lock-box { border-radius: 16px; }
.chap2-body .pullquote {
  border-radius: 14px;
  background: var(--secondary);
  border-left: 3px solid var(--primary);
  padding: 16px 18px;
  font-family: var(--font-display);
  color: var(--primary-dark);
}

/* navegacao entre capitulos */
.chap2-body .chapter-nav {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.chap2-body .chapter-nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  max-width: 48%;
}
.chap2-body .chapter-nav-link:hover { text-decoration: underline; }

/* ---- Fotos de passo a passo (manobra) ---- */
.step-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0 6px;
}
.step-figure-grid.single { grid-template-columns: minmax(0, 380px); }
.step-figure { margin: 0; }
.step-figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}
.step-figure-caption {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-soft, #6E5E54);
  text-align: center;
}
@media (max-width: 560px) {
  .step-figure-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}

/* ---- Videos reais dos sinais (tiragem etc.) ---- */
.sign-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 4px;
}
.sign-video {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sign-video video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: var(--primary-dark);
  border: 1px solid var(--border);
  display: block;
}
.sign-video-label {
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: center;
}
@media (max-width: 620px) {
  .sign-video-grid { grid-template-columns: 1fr; gap: 16px; max-width: 340px; margin-inline: auto; }
  .sign-video video { aspect-ratio: 4 / 3; }
}

/* ---- Grade de dispositivos (ilustracoes flat sem marca) ---- */
.device-grid-block { margin: 26px 0 8px; }
.device-grid-block > h3 { margin: 0 0 6px; }
.device-grid-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft, #6E5E54);
  margin: 0 0 16px;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.device-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 12px 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.device-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--secondary);
}
.device-card-art img {
  max-width: 68px;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.device-card-body { display: flex; flex-direction: column; gap: 3px; }
.device-card-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}
.device-card-caption {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-soft, #6E5E54);
}
/* uma so ilustracao: nao esticar num grid de 2 colunas */
.device-grid:has(> .device-card:only-child) { grid-template-columns: minmax(0, 320px); }
@media (min-width: 560px) {
  .device-grid { grid-template-columns: repeat(4, 1fr); }
  .device-grid:has(> .device-card:only-child) { grid-template-columns: minmax(0, 260px); }
}

@media (min-width: 720px) {
  .chap2-hd { padding: 24px 30px 28px; }
  .chap2-hd h1 { font-size: 30px; }
  .chap2-body { padding: 26px 30px 0; }
}

/* corrige link de reset da IA que ignorava o atributo hidden */
.search-reset-link[hidden] { display: none; }
/* badge IA legivel sobre o cabecalho verde */
.chap2-hd .ai-badge { background: var(--amber-bg); color: #9a6a1c; }

/* ============================================================
   GAVETA (sidebar) no visual V2 - icones SVG no lugar de emoji
   ============================================================ */
.sidebar-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--secondary);
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0;
}
.sidebar-category-icon svg { width: 18px; height: 18px; }
.sidebar-category-header.active .sidebar-category-icon { background: rgba(255, 255, 255, 0.22); color: #fff; }
.sidebar-category-header.coming-soon .sidebar-category-icon { background: var(--bg); color: var(--muted); }

.sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--secondary);
  color: var(--primary);
  flex-shrink: 0;
}
.sidebar-link-icon svg { width: 19px; height: 19px; }
.sidebar-link.active .sidebar-link-icon { background: rgba(255, 255, 255, 0.22); color: #fff; }

.sidebar-category-caret {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.sidebar-category-caret svg { width: 16px; height: 16px; transition: transform 0.16s ease; }
.sidebar-category-caret.is-open svg { transform: rotate(90deg); }

.sidebar-search-icon { display: inline-flex; align-items: center; color: var(--muted); }
.sidebar-search-icon svg { width: 18px; height: 18px; }

.sidebar-search-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--secondary);
  color: var(--primary);
  flex-shrink: 0;
}
.sidebar-search-result-icon svg { width: 18px; height: 18px; }

.trial-lock-icon { display: inline-flex; align-items: center; margin-left: auto; color: var(--amber); }
.trial-lock-icon svg { width: 15px; height: 15px; }

/* ============ LANDING / PAGINA DE ENTRADA (vendas) ============ */
.auth-shell.landing {
  display: block;
  min-height: 100vh;
  padding: 0;
  align-items: initial;
  justify-content: initial;
}
.lp { width: 100%; color: var(--text); }
.lp b { color: var(--primary-dark); }

/* barra do topo */
.lp-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px;
  background: rgba(246, 242, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.lp-brand { display: flex; align-items: center; gap: 9px; }
.lp-brand-ic { width: 34px; height: 34px; border-radius: 9px; }
.lp-brand-tx { font-size: 12.5px; line-height: 1.15; color: var(--primary-dark); font-family: var(--font-display); }
.lp-brand-tx b { font-weight: 600; }
.lp-enter {
  font-size: 13px; font-weight: 600; color: var(--primary);
  text-decoration: none; padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 999px; white-space: nowrap;
}
.lp-enter:hover { background: var(--secondary); }

/* secoes */
.lp-hero, .lp-what, .lp-feats, .lp-band, .lp-login { padding: 30px 20px; }
.lp-hero { padding-top: 26px; }
.lp-h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  color: var(--primary-dark); text-align: center; margin: 0 0 18px;
}

/* hero */
.lp-hero-copy { max-width: 640px; margin: 0 auto; }
.lp-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--primary); background: var(--secondary);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.lp-h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 8vw, 40px); line-height: 1.08; color: var(--primary-dark);
  margin: 0 0 12px;
}
.lp-h1 em { font-style: normal; color: #C0714F; }
.lp-lead { font-size: 16.5px; line-height: 1.6; color: var(--text); margin: 0 0 20px; }
.lp-hero-fig { margin: 22px auto 0; max-width: 640px; }
.lp-hero-fig img {
  width: 100%;
  height: auto; /* o atributo height="1402" do HTML esticava a foto no celular */
  aspect-ratio: 1122 / 1402;
  max-height: 72vh;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(59, 43, 36,.16);
  display: block;
}

/* preco na landing */
.lp-price { align-items: flex-start; margin: 4px 0 16px; }
.lp-price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lp-price-line s { font-size: 17px; color: var(--muted); }
.lp-price-line strong { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--primary-dark); }
.lp-price-once { font-size: 12.5px; color: var(--muted); }

/* CTAs */
.lp-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.lp-cta-center { align-items: center; max-width: 420px; margin-left: auto; margin-right: auto; }
.lp-band .lp-cta-center { max-width: 560px; }
.lp-buy {
  display: block; text-align: center; text-decoration: none;
  padding: 15px 22px; border-radius: 14px; font-size: 16.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #A9573A 0%, #7E3F29 100%);
  box-shadow: 0 10px 24px rgba(59, 43, 36,.28); transition: transform .12s ease, box-shadow .12s ease;
}
.lp-buy:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(59, 43, 36,.36); }
.lp-buy-lg { width: 100%; }
.lp-try {
  display: block; text-align: center; text-decoration: none;
  padding: 13px 22px; border-radius: 14px; font-size: 15px; font-weight: 600;
  color: var(--primary-dark); background: #fff; border: 1.5px solid var(--border);
}
.lp-try:hover { border-color: var(--sage); }
.lp-reassure { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }

/* frase "o que e" */
.lp-what { background: var(--secondary); }
.lp-what p {
  max-width: 680px; margin: 0 auto; text-align: center;
  font-family: var(--font-display); font-size: 19px; line-height: 1.5; color: var(--primary-dark);
}

/* features */
.lp-feats { max-width: 1000px; margin: 0 auto; }
.lp-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lp-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 18px; }
.lp-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; background: var(--secondary); color: var(--primary);
  margin-bottom: 12px;
}
.lp-ic svg { width: 24px; height: 24px; }
.lp-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--primary-dark); margin: 0 0 5px; }
.lp-card p { font-size: 14px; line-height: 1.55; color: var(--text); margin: 0; }

/* faixa CTA verde */
.lp-band { background: var(--primary-dark); text-align: center; }
.lp-band .lp-h2 { color: #fff; }
.lp-band .lp-price { align-items: center; justify-content: center; margin-bottom: 18px; }
.lp-band .lp-price-line { justify-content: center; }
.lp-band .lp-price-line s { color: rgba(255,255,255,.55); }
.lp-band .lp-price-line strong { color: #fff; }
.lp-band .lp-price-once { color: rgba(255,255,255,.7); }
.lp-band .lp-reassure { color: rgba(255,255,255,.7); }
.lp-band .lp-try { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* login */
.lp-login { max-width: 400px; margin: 0 auto; }
.lp-form { text-align: left; }
.lp-login .auth-links { text-align: center; }

/* rodape */
.lp-foot { padding: 24px 20px 40px; text-align: center; border-top: 1px solid var(--border); }
.lp-foot p { margin: 0 0 6px; font-size: 13px; color: var(--primary-dark); }
.lp-disc { color: var(--muted) !important; font-size: 12px !important; max-width: 560px; margin: 0 auto !important; line-height: 1.5; }

/* desktop */
@media (min-width: 860px) {
  .lp-hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    max-width: 1060px; margin: 0 auto; padding: 48px 32px;
  }
  .lp-hero-copy { margin: 0; }
  .lp-hero-fig { margin: 0; }
  .lp-cta { flex-direction: row; }
  .lp-cta .lp-buy, .lp-cta .lp-try { flex: 1; white-space: nowrap; }
  .lp-h1 { font-size: 44px; }
  .lp-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-h2 { font-size: 28px; }
  .lp-what p { font-size: 22px; }
}
@media (min-width: 560px) and (max-width: 859px) {
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Pacote de correcoes da auditoria (jul/2026) ===== */

/* Fundo escurecido atras do menu lateral no celular; toque fora fecha o menu */
.sidebar-backdrop {
  display: none;
}
@media (max-width: 900px) {
  .sidebar-backdrop.visible {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(40, 28, 22, 0.4);
    z-index: 39;
  }
}

/* Checador: estado neutro (nada marcado ainda) */
.checker-result.level-neutral {
  background: var(--secondary);
  border-color: var(--border);
  color: var(--primary-dark);
}

/* Checador: hierarquia visual sutil dos sinais por gravidade */
.checker-item.level-2 span { font-weight: 500; }
.checker-item.level-3 span { font-weight: 600; }
.checker-item.level-3 {
  border-left: 3px solid var(--red);
  padding-left: 8px;
  border-radius: 4px;
}

/* Banner do modo demo nao pode ficar atras do botao "Sair" no celular */
@media (max-width: 600px) {
  #demo-banner { padding-right: 92px; }
  .trial-banner { padding-right: 92px; }
}

/* Home no celular: reserva espaco no cabecalho para o botao "Sair" fixo
   nao cobrir o avatar */
@media (max-width: 600px) {
  .home2-hd { padding-right: 72px; }
}

/* Banner de instalar PWA: no celular fica ACIMA da bottom nav (nao cobre os botoes) */
@media (max-width: 900px) {
  .pwa-install-banner { bottom: 78px; }
}

/* Texto de fechamento no fim da pagina de categoria */
.cat2-closing {
  margin-top: 34px;
  padding: 24px 22px 6px;
  border-top: 1px solid var(--border);
}
.cat2-closing h2 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--primary-dark);
  margin: 0 0 12px;
}
.cat2-closing p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 12px;
}

/* =======================================================================
   CHECADOR DE SINTOMAS v2
   Barra de resultado fixa no rodape (nunca sai da tela), temas que abrem
   so o que interessa e cartoes grandes no lugar de caixinhas.
   ======================================================================= */

.ck-body { padding-bottom: 130px; } /* espaco para a barra fixa nao cobrir o fim */

/* ---- idade ---- */
.ck-age { margin: 22px 0 26px; }
.ck-age-q { font-weight: 700; font-size: 15px; color: var(--primary-dark); margin: 0 0 10px; }
.ck-age-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ck-age-opt {
  padding: 12px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  background: #fff; color: var(--text); border: 1.5px solid var(--border); cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.ck-age-opt[aria-pressed="true"] {
  border-color: var(--primary); background: var(--secondary); color: var(--primary-dark);
}

/* ---- bloco de emergencia ---- */
.ck-emerg {
  border: 1.5px solid var(--red); background: var(--red-bg);
  border-radius: 16px; padding: 18px 16px; margin-bottom: 26px;
}
.ck-emerg h2 {
  font-family: var(--font-display); font-size: 18px; color: var(--red); margin: 0 0 4px;
}
.ck-emerg-hint { font-size: 13px; color: #8c3722; margin: 0 0 14px; line-height: 1.5; }

/* ---- temas ---- */
.ck-topics h2 { font-family: var(--font-display); font-size: 19px; color: var(--primary-dark); margin: 0 0 4px; }
.ck-topics-hint { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.ck-topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 26px; }
.ck-topic {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px 12px; border-radius: 14px; background: #fff; border: 1.5px solid var(--border);
  cursor: pointer; text-align: left; transition: border-color .12s ease, background .12s ease;
}
.ck-topic[aria-pressed="true"] { border-color: var(--primary); background: var(--secondary); }
.ck-topic-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--secondary); color: var(--primary);
}
.ck-topic[aria-pressed="true"] .ck-topic-ic { background: #fff; }
.ck-topic-ic svg { width: 19px; height: 19px; }
.ck-topic-tx { font-size: 13.5px; font-weight: 600; color: var(--primary-dark); line-height: 1.3; }
.ck-topic-n {
  position: absolute; top: 10px; right: 10px; min-width: 20px; height: 20px;
  border-radius: 999px; background: var(--primary); color: #fff;
  font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}

/* ---- grupos e itens ---- */
.ck-group { margin-bottom: 24px; }
.ck-group h3 {
  font-family: var(--font-display); font-size: 17px; color: var(--primary-dark); margin: 0 0 4px;
}
.ck-group-hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.ck-group.is-reassuring {
  background: var(--green-bg); border-radius: 16px; padding: 18px 16px; margin-top: 30px;
}

.ck-list { display: flex; flex-direction: column; gap: 8px; }
.ck-item {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 13px 14px; border-radius: 13px; background: #fff;
  border: 1.5px solid var(--border); cursor: pointer; text-align: left;
  transition: border-color .12s ease, background .12s ease;
}
.ck-item:hover { border-color: var(--sage); }
.ck-box {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  border: 2px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ck-tick { width: 14px; height: 14px; opacity: 0; transition: opacity .1s ease; }
.ck-label { font-size: 14px; line-height: 1.45; color: var(--text); }

.ck-item[aria-pressed="true"] .ck-tick { opacity: 1; }
.ck-item[aria-pressed="true"] { border-color: var(--primary); background: var(--secondary); }
.ck-item[aria-pressed="true"] .ck-box { background: var(--primary); border-color: var(--primary); }
/* nivel 3 marcado: vermelho, para a mae ver de relance o que pesou */
.ck-item.lvl-3[aria-pressed="true"] { border-color: var(--red); background: var(--red-bg); }
.ck-item.lvl-3[aria-pressed="true"] .ck-box { background: var(--red); border-color: var(--red); }
.ck-item.lvl-2[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-bg); }
.ck-item.lvl-2[aria-pressed="true"] .ck-box { background: var(--amber); border-color: var(--amber); }

.ck-reset { margin-top: 10px; width: 100%; }

/* ---- barra fixa de resultado ---- */
.ck-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: #fff; border-top: 1.5px solid var(--border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .10);
  max-height: 70vh; overflow-y: auto;
}
.ck-bar-main {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 18px; background: transparent; border: 0; cursor: pointer; text-align: left;
}
.ck-bar-count {
  flex: 0 0 auto; font-size: 11.5px; color: var(--muted); line-height: 1.15; text-align: center;
}
.ck-bar-count strong { display: block; font-size: 19px; color: var(--primary-dark); }
.ck-bar-title { flex: 1; font-size: 15px; font-weight: 700; color: var(--primary-dark); line-height: 1.3; }
.ck-bar-chev { flex: 0 0 auto; color: var(--muted); display: flex; }
.ck-bar-chev svg { width: 20px; height: 20px; transition: transform .15s ease; }
.ck-bar-main[aria-expanded="true"] .ck-bar-chev svg { transform: rotate(180deg); }

.ck-bar-detail { padding: 0 18px 18px; }
.ck-bar-msg { font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.ck-bar-action { font-size: 14.5px; font-weight: 700; margin: 0 0 14px; }
.ck-bar-why { border-top: 1px solid var(--border); padding-top: 12px; }
.ck-why-t { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.ck-bar-why ul { margin: 0; padding-left: 18px; }
.ck-bar-why li { font-size: 13.5px; line-height: 1.5; margin-bottom: 6px; }
.ck-bar-why li.lvl-3 { color: var(--red); font-weight: 600; }
.ck-bar-why li.lvl-2 { color: #96691d; }

.ck-bar.level-neutral .ck-bar-title { color: var(--muted); font-weight: 600; }
.ck-bar.level-green  { border-top-color: var(--green); }
.ck-bar.level-green  .ck-bar-title, .ck-bar.level-green  .ck-bar-action { color: var(--green); }
.ck-bar.level-yellow { border-top-color: var(--amber); background: #fffdf7; }
.ck-bar.level-yellow .ck-bar-title, .ck-bar.level-yellow .ck-bar-action { color: #96691d; }
.ck-bar.level-red    { border-top-color: var(--red); background: var(--red-bg); border-top-width: 3px; }
.ck-bar.level-red    .ck-bar-title, .ck-bar.level-red .ck-bar-action { color: var(--red); }
.ck-bar.level-red    .ck-bar-count strong { color: var(--red); }

/* No celular a bottom nav ocupa o rodape: a barra sobe para nao cobri-la */
@media (max-width: 900px) {
  .ck-bar { bottom: 62px; }
  .ck-body { padding-bottom: 150px; }
}
@media (min-width: 720px) {
  .ck-age-opts { grid-template-columns: repeat(4, 1fr); }
  .ck-topic-grid { grid-template-columns: repeat(3, 1fr); }
}

/* No checador, o convite de instalar o app sai da frente: a barra de resultado
   ocupa o rodape e nao pode ser coberta por propaganda. */
body.route-checker .pwa-install-banner { display: none !important; }

/* Nivel intermediario do checador: "procure atendimento hoje" */
.ck-bar.level-orange { border-top-color: #d9822b; background: #fff6ec; border-top-width: 3px; }
.ck-bar.level-orange .ck-bar-title,
.ck-bar.level-orange .ck-bar-action { color: #9C4F33; }
.ck-bar.level-orange .ck-bar-count strong { color: #9C4F33; }
.ck-why-soma {
  font-size: 13.5px; font-weight: 700; line-height: 1.5;
  background: #fff3e2; color: #8a4a12;
  border-radius: 10px; padding: 10px 12px; margin: 0 0 12px;
}

/* ============================================================
   REFRESH 2026-09: menos marrom, volta o verde (eucalipto) nos
   fundos escuros, terracota fica como destaque. Fotos com degrade
   nos cabecalhos e botoes do menu flutuantes com brilho.
   ============================================================ */
:root {
  --primary-dark: #2F4A3E;           /* eucalipto profundo (antes cafe #3B2B24) */
  --primary-deep: #22382F;
  --secondary: #EEF1E6;              /* salvia bem clara para os fundos de icone */
  --sage: #A9BBA0;
  --hero-grad: linear-gradient(135deg, #22382F 0%, #2F4A3E 45%, #46604C 78%, #7A5A45 125%);
  --glow: 0 10px 24px -14px rgba(34, 56, 47, 0.55), 0 2px 6px -2px rgba(34, 56, 47, 0.18);
  --glow-hover: 0 16px 30px -14px rgba(34, 56, 47, 0.6), 0 3px 10px -3px rgba(192, 113, 79, 0.28);
}

.home2-hd, .cat2-hd, .chap2-hd, .jr-hd, .lp-band { background: var(--hero-grad); }
.prd-aba.on { background: var(--primary-dark); border-color: var(--primary-dark); }

/* Foto no cabecalho: ocupa o cabecalho inteiro; o verde so' escurece o lado do texto */
.hd-foto { overflow: hidden; isolation: isolate; }
.hd-foto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hd-foto);
  background-size: cover;
  background-position: var(--hd-pos, center 30%);
  transform: scaleX(var(--hd-flip, 1));
  z-index: -2;
  pointer-events: none;
}
.hd-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(34, 56, 47, 0.78) 0%, rgba(34, 56, 47, 0.52) 38%, rgba(34, 56, 47, 0.12) 68%, rgba(34, 56, 47, 0) 100%),
    linear-gradient(to top, rgba(34, 56, 47, 0.45) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}
.hd-foto h1, .hd-foto .cat2-sub, .hd-foto .chap2-kick, .hd-foto .cat2-kick { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.hd-foto > * { position: relative; }
.hd-foto > .cat2-back { position: absolute; }

/* Foto de fundo da pagina: aparece suave atras do conteudo, no topo */
.content.pg-foto { position: relative; isolation: isolate; }
.content.pg-foto::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(120vh, 1100px);
  background-image: var(--pg-foto);
  background-size: cover;
  background-position: var(--pg-pos, center 30%);
  transform: scaleX(var(--pg-flip, 1));
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 35%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
/* Textos longos continuam legiveis: corpo do capitulo/tema ganha um veu claro */
.content.pg-foto .chap2-body,
.content.pg-foto .cat2-body:not(.prd-body) {
  background: rgba(251, 246, 239, 0.9);
  border-radius: 22px;
}

/* ---------------- Menu (lateral no PC, gaveta no celular) ---------------- */
.sidebar {
  background:
    radial-gradient(140% 60% at 0% 0%, rgba(169, 187, 160, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
}
.sidebar-brand {
  position: relative;
  display: block;
  margin: -8px -4px 14px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-grad);
  color: #F6EEE3;
  text-decoration: none;
  box-shadow: var(--glow);
}
.sidebar-brand::before {
  content: "";
  position: absolute;
  inset: 0 0 0 35%;
  background: url("/images/home/parque.webp") 70% 30% / cover;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to left, #000 25%, transparent 100%);
  mask-image: linear-gradient(to left, #000 25%, transparent 100%);
  z-index: -1;
}
.sidebar-brand .sidebar-brand-title { color: #fff; position: relative; }
.sidebar-brand .sidebar-brand-subtitle { color: #D8E2D2; position: relative; }

.sidebar-section-title {
  margin-top: 20px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, var(--border), transparent); }

.sidebar-nav { gap: 6px; }

.sidebar-link,
.sidebar-category-header {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(47, 74, 62, 0.08);
  border-radius: 14px;
  box-shadow: var(--glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.sidebar-sublink { box-shadow: none; background: transparent; border-color: transparent; border-radius: 10px; }
/* brilho: faixa de luz que passa no hover */
.sidebar-link::after,
.sidebar-category-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.sidebar-link:hover::after,
.sidebar-category-header:hover::after { left: 120%; }
.sidebar-link:not(.sidebar-sublink):hover,
.sidebar-category-header:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--glow-hover);
}
.sidebar-sublink:hover { background: var(--secondary); }

.sidebar-link.active,
.sidebar-category-header.active {
  background: var(--hero-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px -12px rgba(34, 56, 47, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.sidebar-sublink.active { background: var(--primary-dark); box-shadow: none; }

.sidebar-link-checker { border: 1px solid rgba(47, 74, 62, 0.08); margin: 0; }

.sidebar-link-icon,
.sidebar-category-icon {
  background: linear-gradient(145deg, #F4F7EF 0%, #E3EBDD 100%);
  color: var(--primary-dark);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(34, 56, 47, 0.12);
}
.sidebar-link.active .sidebar-link-icon,
.sidebar-category-header.active .sidebar-category-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sidebar-category-header.coming-soon { box-shadow: none; background: transparent; }

/* Botao do menu (celular): flutuante, com brilho */
.menu-toggle {
  background: var(--hero-grad);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 10px 24px -8px rgba(34, 56, 47, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Barra de baixo (celular): flutuante */
.bottom-nav {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bottom-nav-item.on { color: var(--primary-dark); }
.bottom-nav-item.on svg { filter: drop-shadow(0 3px 6px rgba(47, 74, 62, 0.35)); }

@media (prefers-reduced-motion: reduce) {
  .sidebar-link, .sidebar-category-header, .jr-prd-card { transition: none; }
  .sidebar-link::after, .sidebar-category-header::after { display: none; }
}
@media (max-width: 900px) {
  .bottom-nav {
    left: 12px;
    right: 12px;
    bottom: 10px;
    border-radius: 22px;
    border: 1px solid rgba(47, 74, 62, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px -14px rgba(34, 56, 47, 0.5), inset 0 1px 0 #fff;
    padding: 7px 0 max(8px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 900px) {
  .ck-bar { bottom: 82px; }
  .ck-body { padding-bottom: 170px; }
}

/* Botoes da home e tiles de tema: mesmo acabamento flutuante com brilho do menu */
.home2-act, .home2-prd, .home2-tile, .home2-journey-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home2-act::after, .home2-prd::after, .home2-tile::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.home2-act:hover, .home2-prd:hover, .home2-tile:hover, .home2-journey-card:hover { transform: translateY(-2px); box-shadow: var(--glow-hover); }
.home2-act:hover::after, .home2-prd:hover::after, .home2-tile:hover::after { left: 120%; }
.home2-tile-ic, .home2-act-ic { box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(34, 56, 47, 0.14); }
@media (prefers-reduced-motion: reduce) {
  .home2-act, .home2-prd, .home2-tile, .home2-journey-card { transition: none; }
  .home2-act::after, .home2-prd::after, .home2-tile::after { display: none; }
}

/* Faixa de foto na home (decorativa) */
.home2-band {
  position: relative;
  margin: 8px 0 22px;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--glow);
}
.home2-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.home2-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 56, 47, 0.82) 0%, rgba(34, 56, 47, 0.25) 45%, transparent 70%);
}
.home2-band figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #F6EEE3;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.35;
}
@media (min-width: 720px) { .home2-band { aspect-ratio: 21 / 8; } }

/* Cartao de produtos da home com a foto da praia se dissolvendo */
.home2-prd { isolation: isolate; }
.home2-prd::before {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  background: url("/images/home/praia-filtro.webp") center 35% / cover;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 100%);
  mask-image: linear-gradient(to left, #000 10%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

/* Home: sem o "B"; nome numa linha, especialidade + CRM + RQE juntos na outra */
.home2-avatar { display: none; }
.home2-kick { max-width: none; }
.home2-kick > span:first-child { display: block; }
.home2-kick-cred { display: block; white-space: nowrap; }
@media (max-width: 600px) {
  .home2-kick-cred { letter-spacing: 0.05em; font-size: 10.5px; }
}

/* Faixa do cafe da manha: foto inteira, sem cortar ninguem */
.home2-band, .home2-band img { aspect-ratio: 1374 / 1145; }
@media (min-width: 720px) { .home2-band { aspect-ratio: 1374 / 1145; } }
.home2-band img { height: auto; object-fit: contain; }
.home2-band::after { background: linear-gradient(to top, rgba(34, 56, 47, 0.75) 0%, rgba(34, 56, 47, 0.2) 22%, transparent 35%); }

/* Modelos para imprimir (PDF) */
.modelos-pdf { display: grid; gap: 10px; margin: 14px 0 22px; }
.modelo-pdf {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: var(--hero-grad);
  box-shadow: var(--glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.modelo-pdf:hover { transform: translateY(-2px); box-shadow: var(--glow-hover); }
.modelo-pdf-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
.modelo-pdf-ic svg { width: 22px; height: 22px; }
.modelo-pdf-tx { display: flex; flex-direction: column; line-height: 1.3; }
.modelo-pdf-tx strong { font-size: 15px; }
.modelo-pdf-tx span { font-size: 12.5px; color: #D8E2D2; }
@media print { .modelos-pdf { display: none; } }
