/* Guias públicos (SEO). Usa os tokens e componentes do landing.css (nav, cta, faq, foot, rng, sim-out);
   aqui só o que é próprio de um texto longo: largura de leitura, resposta curta, tabelas, passos e a calculadora. */
.guia {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 40px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--soft);
}
.crumbs a {
  border-bottom: 1px solid rgba(22, 18, 14, 0.15);
}
.crumbs a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.guia h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.g-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--soft);
}
.answer {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(80, 40, 20, 0.35);
  font-size: 18px;
  line-height: 1.6;
}
.answer p + p {
  margin-top: 10px;
}
.answer b:first-child {
  color: #c8224a; /* --accent escurecido: 5,5:1 no branco (o #e0345b fica em 4,36:1) */
}
.guia h2 {
  margin: 56px 0 14px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 760;
}
.guia h3 {
  margin: 28px 0 8px;
  font-size: 21px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.guia p,
.guia li {
  font-size: 17.5px;
  line-height: 1.7;
  color: #3a322b;
}
.guia p {
  margin-top: 12px;
}
.guia ul,
.guia ol {
  margin-top: 12px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.guia main a,
.guia p a,
.guia li a,
.guia td a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid rgba(224, 52, 91, 0.35);
}
.guia p a:hover,
.guia li a:hover,
.guia td a:hover {
  border-color: var(--accent);
}
.guia strong {
  color: var(--ink);
}

/* passos numerados */
.steps {
  list-style: none;
  padding: 0 !important;
  counter-reset: s;
  gap: 14px !important;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 18px 20px 18px 66px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fbf8f5;
  font-size: 15px;
  font-weight: 700;
}
.steps b {
  display: block;
  color: var(--ink);
}

/* tabelas */
.tbl {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
}
.tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 520px;
}
.tbl th,
.tbl td {
  text-align: left;
  padding: 13px 16px;
  vertical-align: top;
  line-height: 1.45;
}
.tbl thead th {
  font-size: 13px;
  font-weight: 650;
  color: var(--soft);
  background: #f3eee9;
}
.tbl tbody tr + tr td {
  border-top: 1px solid var(--line);
}
.tbl td:first-child {
  font-weight: 650;
  color: var(--ink);
}
.tbl .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tbl-note {
  margin-top: 10px !important;
  font-size: 14px !important;
  color: var(--soft) !important;
}

/* níveis */
.levels {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
.level {
  border-radius: 24px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gem, var(--ink));
}
.level h3 {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.level h3 small {
  font-size: 13px;
  font-weight: 650;
  color: var(--soft);
  white-space: nowrap;
}
.level .gate {
  margin-top: 6px;
  font-size: 15.5px;
}
.level ul {
  margin-top: 10px;
  gap: 4px;
}
.level li {
  font-size: 15.5px;
}
.lv-quartzo {
  --gem: #d995a4;
}
.lv-perola {
  --gem: #c9bead;
}
.lv-rubi {
  --gem: #b81d3a;
}
.lv-diamante {
  --gem: #8fbdd1;
}
.lv-rouge {
  --gem: #d42a44;
}

/* perguntas dentro do guia */
.guia .faq {
  padding: 0;
  max-width: none;
}
.guia details p {
  margin-top: 0;
}
.guia summary {
  font-size: 19px;
}

/* ligações relacionadas */
.related {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.related a {
  display: block;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 650;
  line-height: 1.35;
  transition:
    transform 0.3s var(--ease),
    border-color 0.2s;
}
.related a span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
}
.related a:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 18, 14, 0.2);
}
.related a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* chamada final, no tom do bloco de convite da página inicial */
.cta-band {
  max-width: 1180px;
  margin: 72px auto 40px;
  padding: 56px 48px;
  border-radius: 40px;
  background:
    radial-gradient(
      600px 300px at 20% 0%,
      rgba(201, 160, 99, 0.28),
      transparent 70%
    ),
    linear-gradient(160deg, var(--ink2), #0b0907);
  color: #f6f1ec;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 780;
}
.cta-band p {
  margin: 14px auto 28px;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.6;
  color: #c5b8ac;
}

/* rodapé com os guias */
.foot {
  flex-wrap: wrap;
  gap: 10px 22px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.foot a:hover {
  color: var(--ink);
}

/* calculadora */
.calc {
  margin-top: 28px;
  border-radius: var(--r);
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(80, 40, 20, 0.35);
}
.calc fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.calc legend {
  font-size: 14px;
  font-weight: 600;
  color: #3a322b;
  margin-bottom: 10px;
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seg label {
  position: relative;
  cursor: pointer;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f3eee9;
  font-size: 15px;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}
.seg input:checked + span {
  background: var(--ink);
  color: #fbf8f5;
}
.seg input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.calc .rng output {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.hint {
  margin-top: 8px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--soft) !important;
}
.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  border-bottom: 2px solid rgba(224, 52, 91, 0.35);
}
.linkbtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.calc .sim-out .big {
  margin-top: 4px;
}
.calc .sim-out p {
  color: #f6f1ec;
  font-size: 15px;
  margin-top: 0;
}
.calc .sim-out p:first-child {
  font-size: 13px;
  color: #c5b8ac;
}
.calc .sim-out .small {
  margin-top: 8px;
  color: #c5b8ac;
  font-size: 13px;
}
.rows {
  list-style: none;
  padding: 0 !important;
  margin-top: 16px !important;
  gap: 6px !important;
}
.rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: #e9dfd4;
}
.rows li b {
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
}
.calc-warn {
  margin-top: 14px !important;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(201, 160, 99, 0.16);
  color: #f2e3cc !important;
  font-size: 14px !important;
}

@media (max-width: 700px) {
  .related {
    grid-template-columns: 1fr;
  }
  .cta-band {
    margin: 56px 14px 32px;
    padding: 40px 22px;
    border-radius: 30px;
  }
  .guia p,
  .guia li {
    font-size: 16.5px;
  }
  .answer {
    font-size: 17px;
    padding: 20px;
  }
  .calc {
    padding: 20px;
  }
}

/* seta dos botões em SVG (os guias já não carregam a fonte de ícones) */
.arr .ic {
  display: block;
  width: 18px;
  height: 18px;
}
