/* ==========================================================================
   Escolha Bike: folha de estilo única
   Sem framework, sem dependência externa, sem build. Mobile-first.
   Ordem: tokens > reset > layout > header/footer > tipografia > componentes
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --preto:        #0b0b0c;
  --grafite:      #1a1b1f;
  --grafite-2:    #2a2c33;
  --destaque:      #0cbc60;   /* verde-elétrico, amostrado do raio da logo */
  --destaque-esc:  #09934b;
  --destaque-luz:  #e9f9f1;

  --texto:        #17181c;
  --texto-suave:  #5b5e68;
  --texto-fraco:  #8b8e98;

  --fundo:        #ffffff;
  --fundo-alt:    #f6f7f9;
  --borda:        #e3e5ea;

  --ok:           #15803d;
  --ok-bg:        #f0fdf4;
  --nao:          #be123c;
  --nao-bg:       #fff1f2;
  --info-bg:      #eff6ff;
  --info-bd:      #bfdbfe;

  --raio:         12px;
  --raio-sm:      8px;
  --sombra:       0 1px 2px rgba(16,18,24,.06), 0 8px 24px -12px rgba(16,18,24,.18);
  --sombra-fw:    0 2px 4px rgba(16,18,24,.08), 0 18px 40px -18px rgba(16,18,24,.28);

  --largura:      1180px;   /* container geral */
  --leitura:      50rem;    /* largura do texto do artigo (~800px) */

  --fonte: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;
  /* Para trocar por uma Google Font, mude só esta linha e adicione o <link>. */
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--fonte);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.7;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--destaque-esc); text-underline-offset: 3px; }
a:hover { color: var(--preto); }

/* Alvo de âncora não fica escondido atrás do header fixo */
[id] { scroll-margin-top: 84px; }

:focus-visible { outline: 3px solid var(--destaque); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 3. Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.secao { padding-block: 3.5rem; }
.secao--alt { background: var(--fundo-alt); border-block: 1px solid var(--borda); }

.grade {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* --- 4. Header ----------------------------------------------------------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: var(--preto);
  border-bottom: 1px solid #26272c;
}
.topo__wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.marca { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.marca img { width: 46px; height: 46px; border-radius: 50%; }
.marca__nome {
  font-size: 1.15rem; font-weight: 700; color: #fff;
  letter-spacing: -.02em; line-height: 1.15;
}
.marca__nome span { color: var(--destaque); }
/* Precisa do .marca__nome na frente: `.marca__nome span` acima é mais específico
   que uma classe sozinha e pintava o slogan com a cor de destaque. */
.marca__nome .marca__slogan {
  display: none; font-size: .75rem; color: #9b9ea8; font-weight: 400; letter-spacing: 0;
}

.nav ul { display: flex; gap: 1.75rem; list-style: none; padding: 0; }
.nav a {
  color: #d6d8de; text-decoration: none; font-size: .95rem; font-weight: 500;
  padding-block: .5rem; border-bottom: 2px solid transparent; display: block;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--destaque); border-bottom-color: var(--destaque); }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 1px solid #3a3c44;
  border-radius: var(--raio-sm); color: #fff; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn[aria-expanded="true"] .menu-btn__abrir,
.menu-btn[aria-expanded="false"] .menu-btn__fechar { display: none; }

@media (max-width: 899px) {
  .nav {
    position: absolute; inset: 68px 0 auto 0; background: var(--preto);
    border-bottom: 1px solid #26272c; display: none;
  }
  .nav[data-aberto] { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav a { padding-block: .85rem; border-bottom: 1px solid #26272c; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: #26272c; }
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .marca__nome .marca__slogan { display: block; }
}

/* --- 5. Footer ----------------------------------------------------------- */
.rodape {
  background: var(--preto); color: #a7aab3; padding-block: 3rem 2rem;
  font-size: .9rem; margin-top: 4rem;
}
.rodape a { color: #d6d8de; text-decoration: none; }
.rodape a:hover { color: var(--destaque); text-decoration: underline; }
.rodape h3 { color: #fff; font-size: .95rem; margin-bottom: .75rem; }
.rodape ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
.rodape__base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #26272c;
  font-size: .8rem; color: #7d808a;
}

/* --- 6. Tipografia do artigo -------------------------------------------- */
.artigo { max-width: var(--leitura); margin-inline: auto; }
.artigo > * + * { margin-top: 1.25rem; }

h1, h2, h3, h4 { letter-spacing: -.022em; line-height: 1.22; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 1.9rem); margin-top: 3rem !important; }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.4rem); margin-top: 2rem !important; }
h4 { font-size: 1.05rem; margin-top: 1.5rem !important; }

.artigo p, .artigo li { color: #24262c; }
.artigo ul, .artigo ol { padding-left: 1.35rem; display: grid; gap: .5rem; }
.artigo strong { font-weight: 650; color: var(--texto); }
.artigo img { border-radius: var(--raio); }

.artigo figure { margin-block: 2rem; }
.artigo figcaption {
  font-size: .85rem; color: var(--texto-fraco); text-align: center; margin-top: .6rem;
}

/* --- 7. Meta do artigo (autor, data, breadcrumb) ------------------------- */
.trilha {
  font-size: .85rem; color: var(--texto-fraco); padding-block: 1rem;
}
.trilha ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.trilha li::after { content: "›"; margin-left: .4rem; color: var(--borda); }
.trilha li:last-child::after { content: ""; }
.trilha a { color: var(--texto-suave); text-decoration: none; }
.trilha a:hover { color: var(--destaque-esc); text-decoration: underline; }

.meta-post {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  font-size: .875rem; color: var(--texto-suave);
  padding-block: 1rem; border-block: 1px solid var(--borda); margin-top: 1.5rem;
}
.meta-post__autor { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--texto); }
.meta-post__autor img { width: 32px; height: 32px; border-radius: 50%; }

/* --- 8. Aviso de afiliado ------------------------------------------------ */
.aviso-afiliado {
  background: var(--fundo-alt); border: 1px solid var(--borda); border-left: 3px solid var(--destaque);
  border-radius: var(--raio-sm); padding: .85rem 1rem;
  font-size: .85rem; color: var(--texto-suave); line-height: 1.6;
}

/* --- 9. Botões / CTA ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .975rem; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  min-height: 48px;                      /* alvo de toque confortável */
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sombra); }
.btn:active { transform: translateY(0); }

.btn--ml     { background: var(--destaque); color: var(--preto); }
.btn--ml:hover { background: var(--destaque-esc); color: var(--preto); }
.btn--amazon { background: var(--grafite); color: #fff; }
.btn--amazon:hover { background: var(--grafite-2); color: #fff; }
.btn--vazio  { background: transparent; color: var(--texto); border-color: var(--borda); }
.btn--vazio:hover { border-color: var(--preto); color: var(--preto); }
.btn--bloco  { width: 100%; }

.cta-dupla { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-dupla .btn { flex: 1 1 200px; }

.cta-nota { font-size: .8rem; color: var(--texto-fraco); margin-top: .6rem; }

/* --- 10. Caixa "resposta rápida" (topo do artigo) ------------------------ */
.resposta-rapida {
  background: var(--fundo-alt); border: 1px solid var(--borda);
  border-radius: var(--raio); padding: 1.5rem; box-shadow: var(--sombra);
}
.resposta-rapida h2 { font-size: 1.15rem !important; margin: 0 0 1rem !important; }
.resposta-rapida ol { list-style: none; padding: 0; display: grid; gap: .9rem; margin: 0; }
.resposta-rapida li { display: grid; gap: .15rem; padding-bottom: .9rem; border-bottom: 1px solid var(--borda); }
.resposta-rapida li:last-child { border-bottom: 0; padding-bottom: 0; }
.resposta-rapida__rotulo {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--destaque-esc);
}
.resposta-rapida a { font-weight: 650; color: var(--texto); text-decoration: none; }
.resposta-rapida a:hover { color: var(--destaque-esc); text-decoration: underline; }
.resposta-rapida small { color: var(--texto-suave); }

/* --- 11. Índice / sumário ----------------------------------------------- */
.sumario {
  background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 1.25rem 1.5rem;
}
.sumario > summary {
  font-weight: 700; cursor: pointer; list-style: none; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.sumario > summary::-webkit-details-marker { display: none; }
.sumario > summary::after { content: "＋"; color: var(--destaque-esc); font-weight: 400; }
.sumario[open] > summary::after { content: "－"; }
.sumario ol { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .95rem; }
.sumario a { color: var(--texto-suave); text-decoration: none; }
.sumario a:hover { color: var(--destaque-esc); text-decoration: underline; }

/* --- 12. Tabelas --------------------------------------------------------- */
.tabela-wrap {
  overflow-x: auto; border: 1px solid var(--borda); border-radius: var(--raio);
  -webkit-overflow-scrolling: touch;
}
.tabela-wrap table { margin: 0; border: 0; }

table {
  width: 100%; border-collapse: collapse; font-size: .925rem;
  background: var(--fundo);
}
thead th {
  background: var(--grafite); color: #fff; font-weight: 650; text-align: left;
  padding: .8rem 1rem; white-space: nowrap; font-size: .875rem;
  position: sticky; top: 0;
}
tbody td, tbody th { padding: .8rem 1rem; border-top: 1px solid var(--borda); vertical-align: top; }
tbody th { text-align: left; font-weight: 650; background: var(--fundo-alt); }
tbody tr:nth-child(even) td { background: #fbfbfc; }
tbody tr:hover td { background: var(--destaque-luz); }
td .btn { padding: .5rem 1rem; font-size: .85rem; min-height: 40px; white-space: nowrap; }

.destaque-linha td { background: var(--destaque-luz) !important; box-shadow: inset 3px 0 0 var(--destaque); }

.tabela-dica {
  font-size: .8rem; color: var(--texto-fraco); margin-top: .5rem;
}
@media (min-width: 700px) { .tabela-dica--mobile { display: none; } }

/* --- 13. Card de produto ------------------------------------------------- */
.produto {
  border: 1px solid var(--borda); border-radius: var(--raio); background: var(--fundo);
  box-shadow: var(--sombra); overflow: hidden; margin-top: 2.5rem !important;
}
.produto__topo {
  display: grid; gap: 1.5rem; padding: 1.5rem;
  border-bottom: 1px solid var(--borda); background: var(--fundo-alt);
}
.produto__foto {
  background: #fff; border: 1px solid var(--borda); border-radius: var(--raio-sm);
  padding: 1rem; display: grid; place-items: center;
}
.produto__foto img { max-height: 320px; width: auto; object-fit: contain; }
.produto__info { display: grid; gap: .75rem; align-content: start; }
.produto h3 { margin: 0 !important; }

.selo {
  display: inline-block; align-self: start;
  background: var(--destaque); color: var(--preto);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .7rem; border-radius: 999px;
}
.selo--escuro { background: var(--grafite); color: #fff; }

.nota {
  display: inline-flex; align-items: baseline; gap: .35rem;
  background: var(--preto); color: #fff; border-radius: var(--raio-sm);
  padding: .35rem .75rem; font-weight: 700; font-size: 1.15rem;
}
.nota span { font-size: .75rem; font-weight: 400; color: #9b9ea8; }

.produto__linha {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  font-size: .9rem; color: var(--texto-suave);
}
.produto__linha b { color: var(--texto); font-weight: 650; }
.produto__corpo { padding: 1.5rem; display: grid; gap: 1.25rem; }
.produto__corpo > h4:first-child { margin-top: 0 !important; }

@media (min-width: 700px) {
  .produto__topo { grid-template-columns: 260px 1fr; }
}

/* --- 14. Prós e contras -------------------------------------------------- */
.pros-contras { display: grid; gap: 1rem; }
@media (min-width: 620px) { .pros-contras { grid-template-columns: 1fr 1fr; } }

.pros-contras > div { border-radius: var(--raio-sm); padding: 1.1rem 1.25rem; border: 1px solid; }
.pros  { background: var(--ok-bg);  border-color: #bbf7d0; }
.contras { background: var(--nao-bg); border-color: #fecdd3; }
.pros-contras h4 { margin: 0 0 .6rem !important; font-size: .95rem; }
.pros h4    { color: var(--ok); }
.contras h4 { color: var(--nao); }
.pros-contras ul { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: .925rem; }
/* O marcador é posicionado, NÃO é coluna de grid. Motivo: com
   `display: grid` no <li>, cada trecho de texto solto ao lado de uma tag filha
   vira um item de grid próprio. Um <li> como
   `<strong>24 meses</strong>: a única barata` gerava três itens, e o texto
   depois do </strong> caía na coluna do ✓, com 1,15rem, saindo uma palavra por
   linha. Quebrou 14 itens em 5 páginas. Não voltar para grid/flex aqui. */
.pros-contras li { position: relative; padding-left: 1.65rem; }
.pros li::before,
.contras li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pros li::before    { content: "✓"; color: var(--ok); }
.contras li::before { content: "✕"; color: var(--nao); }

/* --- 15. Callouts -------------------------------------------------------- */
.caixa {
  border: 1px solid var(--info-bd); background: var(--info-bg);
  border-radius: var(--raio-sm); padding: 1.1rem 1.25rem; font-size: .95rem;
}
.caixa__titulo { display: block; font-weight: 700; margin-bottom: .35rem; }
.caixa--alerta { background: #fffbeb; border-color: #fde68a; }
.caixa--erro   { background: var(--nao-bg); border-color: #fecdd3; }

.indicada-para {
  background: var(--destaque-luz); border-left: 3px solid var(--destaque);
  border-radius: var(--raio-sm); padding: .9rem 1.15rem; font-size: .95rem;
}

/* --- 16. FAQ (nativo, sem JS) ------------------------------------------- */
.faq { display: grid; gap: .6rem; }
.faq details {
  border: 1px solid var(--borda); border-radius: var(--raio-sm); background: var(--fundo);
}
.faq summary {
  cursor: pointer; padding: 1rem 1.25rem; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--destaque-esc); flex: none; }
.faq details[open] summary::after { content: "－"; }
.faq details[open] summary { border-bottom: 1px solid var(--borda); }
.faq__resposta { padding: 1rem 1.25rem; color: #24262c; font-size: .95rem; }
.faq__resposta > * + * { margin-top: .75rem; }

/* --- 17. Cards de post (home / listagens) ------------------------------- */
.card {
  display: flex; flex-direction: column; background: var(--fundo);
  border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra-fw); }
.card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--fundo-alt); }
.card__corpo { padding: 1.1rem 1.25rem 1.35rem; display: grid; gap: .5rem; align-content: start; flex: 1; }
.card__cat {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--destaque-esc);
}
.card h3 { font-size: 1.075rem !important; margin: 0 !important; line-height: 1.35; }
.card h3 a { color: var(--texto); text-decoration: none; }
.card:hover h3 a { color: var(--destaque-esc); }
.card p { font-size: .9rem; color: var(--texto-suave); }
.card__pe { margin-top: auto; padding-top: .5rem; font-size: .8rem; color: var(--texto-fraco); }

/* --- 18. Hero (home) ----------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--preto) 0%, #1c1d22 55%, #2a2318 100%);
  color: #fff; padding-block: 4rem 4.5rem; text-align: center;
}
.hero h1 { color: #fff; max-width: 20ch; margin-inline: auto; }
.hero h1 em { font-style: normal; color: var(--destaque); }
.hero p {
  color: #c3c6cf; max-width: 60ch; margin: 1.25rem auto 0; font-size: 1.1rem;
}
.hero__acoes { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.hero .btn--vazio { color: #fff; border-color: #4a4c55; }
.hero .btn--vazio:hover { color: var(--preto); background: #fff; border-color: #fff; }

.selos-confianca {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem;
  margin-top: 2.5rem; font-size: .85rem; color: #9b9ea8;
}
.selos-confianca span { display: flex; align-items: center; gap: .45rem; }
.selos-confianca svg { width: 18px; height: 18px; color: var(--destaque); flex: none; }

/* --- 19. Título de seção ------------------------------------------------- */
.titulo-secao { text-align: center; margin-bottom: 2.5rem; }
.titulo-secao h2 { margin-top: 0 !important; }
.titulo-secao p { color: var(--texto-suave); max-width: 60ch; margin: .75rem auto 0; }

/* --- 20. Impressão ------------------------------------------------------- */
@media print {
  .topo, .rodape, .cta-dupla, .hero__acoes { display: none; }
  body { font-size: 11pt; }
}
