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

:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --text: #1a2332;
  --text-muted: #5a6470;
  --primary: #0b2a4a;
  --accent: #ffc107;
  --accent-hover: #ffd23f;
  --accent-shadow: #c79a00;
  --border: #e6ecf2;
  --success: #00a86b;
  --soft: #f0f4f8;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Trust bar */
.trust-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.trust-divider { margin: 0 0.6rem; opacity: 0.4; }
@media (max-width: 480px) {
  .trust-bar { font-size: 0.72rem; padding: 0.5rem; }
  .trust-divider { margin: 0 0.3rem; }
}

/* Container */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

/* === LAYOUT (mobile-first: 1 coluna; desktop: 2 colunas) === */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.main-content {
  min-width: 0; /* permite grid shrink */
}

/* Mobile: esconde sidebar (conteúdo já está acessível no fluxo principal) */
.sidebar {
  display: none;
}

/* Desktop: 2 colunas + sidebar sticky */
@media (min-width: 1024px) {
  .container {
    max-width: 1180px;
    padding: 2rem 1.5rem 3rem;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
  }
  .sidebar {
    display: block;
    position: sticky;
    top: 1.5rem;
    align-self: start;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
  .sidebar::-webkit-scrollbar { width: 6px; }
  .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
}

article > header,
article > section,
.disclaimer {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 16px rgba(11, 42, 74, 0.06);
}

@media (min-width: 1024px) {
  article > header,
  article > section {
    padding: 2.25rem 2rem;
  }
}

/* Hero */
.hero { text-align: center; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.25;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}
.byline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-style: italic;
}
.subhead {
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.subhead strong { color: var(--text); font-weight: 600; }
.product-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}
.cta-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Quick facts grid */
.quick-facts { background: var(--soft) !important; padding: 1.5rem !important; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.fact {
  background: var(--surface);
  padding: 0.75rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.15rem;
}
.fact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.fact-value {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 700;
}
@media (max-width: 480px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Content sections */
.content-section h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  color: var(--primary);
  margin-bottom: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}
.content-section h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.content-section p {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.content-section p:last-child { margin-bottom: 0; }
.content-section a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.content-section sup a {
  text-decoration: none;
  font-size: 0.7rem;
  background: var(--soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 2px;
}

/* Legit checks list */
.legit-checks {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
}
.legit-checks li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
}
.legit-checks li:last-child { border-bottom: none; }
.legit-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Methodology list */
.methodology {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}
.methodology li {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

/* Ingredient list */
.ingredient-list {
  list-style: none;
  margin-top: 0.5rem;
}
.ingredient-list > li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.ingredient-list > li:last-child { border-bottom: none; }
.ingredient-list p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Comparison table */
.comparison-wrap {
  overflow-x: auto;
  margin: 0.5rem -0.5rem 0.5rem;
  padding: 0 0.5rem;
}
.comparison {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.comparison th, .comparison td {
  padding: 0.75rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison th {
  background: var(--soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
}
.comparison tr:last-child td { border-bottom: none; }
.comparison-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}
@media (max-width: 720px) {
  .comparison { font-size: 0.82rem; }
  .comparison th, .comparison td { padding: 0.5rem 0.4rem; }
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.faq details:last-of-type { border-bottom: none; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
  font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA */
.cta-section {
  text-align: center;
}
.cta-section.secondary {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.5rem 0 1.5rem !important;
}
.cta-lead {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  padding: 1.1rem 2.25rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  letter-spacing: 0.01em;
  min-width: 240px;
}
.cta-btn:hover { background: var(--accent-hover); transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-shadow); }
.cta-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-shadow); }
.guarantee { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }

/* About / References */
.about { background: var(--soft) !important; }
.references ol {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}
.references li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.55;
}
.references em { color: var(--text); }

/* === SIDEBAR (desktop) === */
.sidebar-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.25rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(11, 42, 74, 0.06);
}
.sidebar-card:last-child { margin-bottom: 0; }

.sidebar-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.sidebar-eyebrow-alt {
  margin-top: 1rem;
  color: #b3534b;
}

.sidebar-verdict p:not(.sidebar-eyebrow):not(.sidebar-rating) {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.sidebar-rating {
  color: #ffc107;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem !important;
}

.sidebar-cta {
  text-align: center;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.sidebar-cta .cta-btn {
  min-width: 100%;
  margin: 0.6rem 0 0.5rem;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
}
.sidebar-price-note {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}
.sidebar-fine {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.bestfor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bestfor-list li {
  font-size: 0.88rem;
  padding: 0.3rem 0 0.3rem 1.35rem;
  position: relative;
  color: var(--text);
  line-height: 1.45;
}
.bestfor-list li::before {
  content: "•";
  position: absolute;
  left: 0.35rem;
  top: 0.25rem;
  color: var(--primary);
  font-weight: 700;
}

.sidebar-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.sidebar-toc li {
  counter-increment: toc;
  font-size: 0.86rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
}
.sidebar-toc li:last-child { border-bottom: none; }
.sidebar-toc li::before {
  content: counter(toc) ". ";
  color: var(--text-muted);
  font-weight: 600;
}
.sidebar-toc a {
  color: var(--text);
  text-decoration: none;
}
.sidebar-toc a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Disclaimer (footer) */
.disclaimer {
  background: rgba(11, 42, 74, 0.04) !important;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  box-shadow: none !important;
}
.disclaimer p { margin-bottom: 0.65rem; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: var(--text); }
.copyright { text-align: center; margin-top: 0.85rem; font-size: 0.72rem; }

/* Footer navigation (legal pages) */
.footer-nav {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.15rem;
}
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }
.footer-nav span { margin: 0 0.15rem; opacity: 0.5; }
