:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #edf2f7;
  --border: #dce4ee;
  --border-strong: #c5d1e0;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --accent: #1e40af;
  --accent-light: #dbeafe;
  --accent-hover: #1d4ed8;
  --radius: 12px;
  --max-w: 980px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.25;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.main-nav a:hover {
  color: var(--accent);
}

/* Hero Split Layout */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.25rem, 4.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

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

.btn-secondary:hover {
  background: var(--surface-alt);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Ranked Box (Mais procurados) */
.ranked-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.ranked-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ranked-card h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.ranked-list {
  list-style: none;
  counter-reset: rank;
  border-top: 1px solid var(--border);
}

.ranked-list li {
  counter-increment: rank;
  border-bottom: 1px solid var(--border);
}

.ranked-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s;
}

.ranked-list a::before {
  content: counter(rank) ".";
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}

.ranked-list a span.item-title {
  flex: 1;
}

.ranked-list a:hover {
  color: var(--accent);
}

.tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Metrics Strip */
.metrics-strip {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.metric-item strong {
  display: block;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 6px;
}

.metric-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
  max-width: 28ch;
}

/* Editorial Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: var(--surface-alt);
}

.section-header {
  max-width: 62ch;
  margin-bottom: 34px;
}

.section-header h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.section-header a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s, transform 0.15s;
}

.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.app-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.app-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Info Callout Box */
.info-box {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.info-box h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.info-box p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box a {
  color: var(--accent);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

details.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* Legal & Support Pages */
.page-doc {
  padding: 56px 0 72px;
  max-width: 720px;
}

.page-doc h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.3rem;
  margin-bottom: 8px;
}

.page-doc .doc-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.page-doc h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.page-doc p, .page-doc li {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.page-doc ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-doc a {
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 44px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.footer-brand span {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
}