/* ============================================================
   Estilos das páginas de artigo.
   Carregar SEMPRE depois de styles.css (herda tokens e o
   cabeçalho/rodapé/botões compartilhados).
   ============================================================ */

/* ── ABERTURA ──────────────────────────────────────────────── */
.art-hero {
  position: relative;
  padding-inline: var(--gutter);
  background: radial-gradient(120% 90% at 30% 0%, var(--glow) 0%, var(--mid) 50%, var(--deep) 100%);
}
.art-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 182, 92, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 182, 92, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(75% 70% at 40% 10%, #000 0%, transparent 80%);
  mask-image: radial-gradient(75% 70% at 40% 10%, #000 0%, transparent 80%);
  pointer-events: none;
}
.art-hero__inner {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 6vw, 84px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.art-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.back-link {
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(242, 239, 228, .55);
}
.back-link:hover { color: var(--gold); }
.back-link span { font-size: 15px; }

.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.art-meta__tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.art-meta__time { font-size: 12.5px; color: var(--ink-40); }

.art-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(33px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.art-title em { font-style: italic; color: var(--gold); }

.art-lede {
  font-size: clamp(16.5px, 1.8vw, 19px);
  line-height: 1.6;
  color: rgba(242, 239, 228, .68);
  max-width: 540px;
  text-wrap: pretty;
}

.art-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
  font-size: 14.5px;
  color: var(--ink-60);
}
.art-byline strong { font-weight: 600; color: var(--cream); }
.art-byline__rule {
  width: 40px;
  height: 1px;
  background: rgba(216, 182, 92, .5);
  flex: none;
}

.site-nav__links a.is-current { color: var(--gold); }

/* ── VÍDEO ─────────────────────────────────────────────────── */
.art-video {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  min-width: 0;
  width: 100%;
  max-width: 340px;
  justify-self: center;
}
.video-frame { position: relative; width: 100%; }
.video-frame__border {
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(216, 182, 92, .35);
}
.video-frame__box {
  position: relative;
  background: #000;
  border: 1px solid rgba(216, 182, 92, .28);
  overflow: hidden;
}
.video-frame__box iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
}
.video-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

/* ── COLUNA DE TEXTO ───────────────────────────────────────── */
.art-body {
  padding: clamp(52px, 6.5vw, 80px) var(--gutter);
  background: var(--deep);
  border-top: 1px solid var(--hair-soft);
}
.prose {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.prose > p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-72);
  text-wrap: pretty;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 3.2vw, 36px);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin-top: clamp(18px, 2.6vw, 28px);
  text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; }
.prose > .pull + h2 { margin-top: clamp(10px, 2vw, 18px); }

/* Frase de respiro em serifa dourada. */
.pull {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 30px) !important;
  line-height: 1.3 !important;
  color: var(--gold-br) !important;
  text-wrap: balance;
}
.pull--bar {
  padding: 8px 0 8px 26px;
  border-left: 2px solid rgba(216, 182, 92, .5);
}

/* ── QUADRO COMPARATIVO ────────────────────────────────────── */
.compare { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.compare__cell {
  background: var(--mid);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compare__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(242, 239, 228, .45);
}
.compare__label--on { color: rgba(216, 182, 92, .75); }
.compare__num {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: rgba(242, 239, 228, .8);
}
.compare__num--on { color: var(--gold-br); }
.compare__note {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(242, 239, 228, .55);
  text-wrap: pretty;
}

/* ── CAIXA "NA PRÁTICA" ────────────────────────────────────── */
.callout {
  background: var(--mid);
  border: 1px solid rgba(216, 182, 92, .24);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.callout__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(216, 182, 92, .75);
}
.callout p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(242, 239, 228, .75);
  text-wrap: pretty;
}
.callout strong { font-weight: 600; color: var(--gold-br); }

/* ── SEÇÃO "ATENÇÃO" ───────────────────────────────────────── */
.art-attention {
  padding: clamp(56px, 7vw, 88px) var(--gutter);
  background: var(--mid);
  border-top: 1px solid var(--hair-soft);
  border-bottom: 1px solid var(--hair-soft);
}
.art-attention .prose { gap: 24px; }
.art-attention__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin-top: 0;
  text-wrap: balance;
}
.eyebrow--soft {
  color: rgba(216, 182, 92, .75);
  font-size: 11.5px;
  letter-spacing: .18em;
  margin-top: 14px;
}

.order { border-top: 1px solid var(--hair); }
.order li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding-block: 20px;
  border-bottom: 1px solid var(--hair);
}
.order__num {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: rgba(216, 182, 92, .55);
  font-variant-numeric: tabular-nums;
}
.order__text {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(242, 239, 228, .85);
  text-wrap: pretty;
}
.order__after {
  margin-top: 6px;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-72);
  text-wrap: pretty;
}

/* ── QUEM TEM DIREITO ──────────────────────────────────────── */
.criteria { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.criteria__cell {
  background: var(--mid);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.criteria__num {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: rgba(216, 182, 92, .55);
}
.criteria__text {
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(242, 239, 228, .78);
  text-wrap: pretty;
}
.criteria__text strong { font-weight: 600; color: var(--cream); }

.art-note {
  margin-top: clamp(16px, 2.4vw, 26px);
  padding-top: 28px;
  border-top: 1px solid var(--hair);
  font-size: 16.5px !important;
  line-height: 1.7 !important;
  font-style: italic;
  color: var(--ink-60) !important;
  text-wrap: pretty;
}

/* ── REFERÊNCIAS ───────────────────────────────────────────── */
.refs { border-top: 1px solid var(--hair); padding-top: 24px; }
.refs summary {
  cursor: pointer;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(216, 182, 92, .75);
  list-style: none;
}
.refs summary::-webkit-details-marker { display: none; }
.refs__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-top: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(242, 239, 228, .55);
}

/* ── CALCULADORA ───────────────────────────────────────────── */
.calc {
  padding: clamp(64px, 8vw, 104px) var(--gutter);
  background: var(--cream);
  color: var(--mid);
}
.calc__inner {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.calc__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.calc .eyebrow { color: var(--gold-ink); }
.calc__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.calc__lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(11, 31, 20, .66);
  max-width: 440px;
  text-wrap: pretty;
}
.calc__warn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-left: 3px solid var(--gold-dk);
  padding: 20px 22px;
  max-width: 460px;
}
.calc__warn-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.calc__warn p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(11, 31, 20, .72);
  text-wrap: pretty;
}
.calc__warn strong { font-weight: 700; color: var(--mid); }
.calc__disclaimer {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(11, 31, 20, .42);
  max-width: 460px;
}

.calc__panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #fff;
  border: 1px solid rgba(11, 31, 20, .1);
  padding: clamp(26px, 3.5vw, 40px);
}
.calc__field { display: flex; flex-direction: column; gap: 16px; }
.calc__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 14px;
}
.calc__row--spaced { margin-top: 8px; }
.calc__row-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(11, 31, 20, .45);
}
.calc__fat {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: var(--mid);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.calc__scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: rgba(11, 31, 20, .4);
}

.calc__compare {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid rgba(11, 31, 20, .1);
}
.calc__leg { font-size: 14px; font-weight: 600; }
.calc__leg--now { color: rgba(11, 31, 20, .5); }
.calc__leg--next { color: var(--gold-ink); }
.calc__val {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.calc__val--now { color: rgba(11, 31, 20, .55); text-decoration: line-through; }
.calc__val--next { color: #1B5A38; }
.calc__bar { height: 12px; background: rgba(11, 31, 20, .06); }
.calc__bar-fill { height: 100%; }
.calc__bar-fill--now {
  width: 100%;
  background: repeating-linear-gradient(135deg, #4A5A50 0 6px, #3C4A41 6px 12px);
}
.calc__bar-fill--next {
  width: 100%;
  background: linear-gradient(90deg, #1B5A38, var(--gold-dk));
  transition: width .25s ease;
}

/* O painel escuro sangra até as bordas do cartão branco. */
.calc__result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--mid);
  color: var(--cream);
  padding: 28px clamp(26px, 3.5vw, 30px);
  margin: 0 clamp(-40px, -3.5vw, -26px) clamp(-40px, -3.5vw, -26px);
}
.calc__result-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(216, 182, 92, .8);
}
.calc__result-num {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.05;
  color: var(--gold-br);
  font-variant-numeric: tabular-nums;
}
.calc__result-note {
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(242, 239, 228, .7);
  text-wrap: pretty;
}
.calc__result-note strong { color: var(--cream); font-weight: 600; }
.calc__recover {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 182, 92, .2);
}
.calc__recover-label { font-size: 14px; color: var(--ink-60); }
.calc__recover-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-br);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.calc__equiv { font-size: 14px; color: rgba(242, 239, 228, .45); }

/* Slider */
input[type=range].fat {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: rgba(11, 31, 20, .14);
  outline: none;
}
input[type=range].fat::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-br), var(--gold-dk));
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(11, 31, 20, .28);
  cursor: grab;
}
input[type=range].fat::-webkit-slider-thumb:active { cursor: grabbing; }
input[type=range].fat::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-dk);
  border: 3px solid #fff;
  cursor: grab;
}
input[type=range].fat:focus-visible { outline: 2px solid var(--gold-dk); outline-offset: 4px; }

/* ── AJUSTES DE SEÇÃO ──────────────────────────────────────── */
.closing--article { padding-block: clamp(72px, 8vw, 104px); }
.closing--article .closing__inner { gap: 36px; max-width: 840px; }
.closing--article .closing__statement { font-size: clamp(28px, 3.8vw, 42px); }
.site-footer--article { padding-top: clamp(48px, 5vw, 64px); }
.site-footer--article .site-footer__inner { gap: 36px; }

/* ── RESPONSIVO ────────────────────────────────────────────── */
@media (max-width: 760px) {
  /* O vídeo vem antes do texto corrido em telas estreitas seria pior:
     mantém a ordem de leitura (título → vídeo) e só solta a largura. */
  .art-video { max-width: 100%; justify-self: stretch; }
  .video-frame__border { inset: 10px -10px -10px 10px; }
}

@media (max-width: 520px) {
  .calc__fat { font-size: 30px; }
  .calc__result-num { font-size: 40px; }
  .prose > .pull { font-size: 22px !important; }

  /* "Calcular o meu caso no WhatsApp" não cabe em uma linha a 390px:
     deixa quebrar em vez de estourar a largura da página. */
  .art-hero__text .btn {
    white-space: normal;
    text-align: left;
    padding-inline: 24px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calc__bar-fill--next { transition: none; }
}

/* ── ADIÇÕES DA VERSÃO DINÂMICA ────────────────────────────── */

/* Foto no lugar do vídeo, mesma moldura dourada deslocada. */
.video-frame__foto {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 12;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid rgba(216, 182, 92, .28);
  filter: grayscale(.25) contrast(1.04);
}

/* Bloco de imagem dentro do texto. */
.art-figure { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.art-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hair);
}
.art-figure figcaption {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-40);
  text-wrap: pretty;
}

/* Faixa de aviso da pré-visualização de rascunho. */
.preview-aviso {
  margin: 0;
  padding: 12px var(--gutter);
  background: var(--gold-dk);
  color: var(--mid);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* Título dentro da faixa destacada segue o tamanho do design. */
.art-attention .prose h2 { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.12; }
.art-attention .prose h2:first-child,
.art-attention .prose .eyebrow + h2 { margin-top: 0; }
