/* ==========================================================================
   QD Painel — camada de layout por cima do tema padrão (ud-styles.css)
   Usa as variáveis do tema (--primary-color, --heading-color, --body-color)
   e a fonte Inter. Todas as classes têm o prefixo qd- para não colidir com
   o Bootstrap e com o ud-styles.
   ========================================================================== */

:root {
  --qd-alt: #f3f4fe;
  --qd-linha: #e5e7eb;
  --qd-linha-forte: #cfd3da;
  --qd-escuro: #212b36;
  --qd-escuro-2: #2e3a47;
  --qd-sobre-escuro: #f3f4fe;
  --qd-sobre-escuro-2: #aab4c0;
  --qd-primary-suave: #fdeee8;
  --qd-sombra: 0 14px 40px rgba(201, 203, 204, 0.35);
  --qd-sombra-forte: 0 24px 60px rgba(33, 43, 54, 0.22);
  --qd-plate: #eef0f3;
  --qd-plate-grid: #dde1e6;
  --qd-rail: #b9c0c8;
  --qd-rail-2: #929ba5;
  --qd-device: #ffffff;
  --qd-device-stroke: #8b95a1;
}

/* O Bootstrap define scroll-behavior: smooth no :root, o que transforma a
   rolagem para o topo feita pelo Nuxt na troca de pagina em uma animacao.
   Rolagem programatica volta a ser instantanea. */
:root { scroll-behavior: auto; }

/* troca de pagina: a pagina atual esmaece enquanto sobe ao topo e a nova entra em fade */
main { transition: opacity .45s ease; }
html.qd-saindo main { opacity: 0; }

/* ---------- tipografia dos títulos ---------- */
:root { --qd-font-titulo: "Barlow", "Inter", sans-serif; }
h1, h2, h3, h4, h5, h6,
.ud-hero-title, .ud-banner-content h1, .ud-section-title h2,
.ud-feature-title, .ud-widget-title, .qd-t-sec, .qd-plan h3, .qd-story h2, .qd-post h3, .qd-cta-band h2,
.qd-hero h1, .qd-faq-item summary, .qd-stats b, .qd-plan .price b {
  font-family: var(--qd-font-titulo);
  letter-spacing: 0;
}
.qd-hero h1 { font-weight: 800; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.08; }
.qd-t-sec { font-weight: 800; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.15; }
.ud-banner-content h1 { font-weight: 800; font-size: 44px; }
.qd-story h2 { font-weight: 800; }
.qd-cta-band h2 { font-weight: 800; }
.ud-feature-title { font-weight: 700; font-size: 20px; }
.qd-plan h3 { font-weight: 700; font-size: 22px; }
.qd-post h3 { font-weight: 700; font-size: 22px; }

/* ---------- base ---------- */
.qd-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.qd-wrap-narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.qd-sec { padding-block: 100px; }
.qd-sec-alt { background: var(--qd-alt); }
.qd-t-sec { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.25; font-weight: 700; color: var(--heading-color); max-width: 18ch; }
.qd-lead { font-size: 18px; line-height: 30px; color: var(--body-color); max-width: 56ch; }
.qd-num { font-variant-numeric: tabular-nums; }
.qd-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qd-sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 50px; }
.qd-link-line { font-weight: 600; color: var(--primary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 2px; white-space: nowrap; }
.qd-link-line:hover { color: var(--heading-color); border-bottom-color: var(--heading-color); }
.qd-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* header fixo opaco: o template usa 80% de branco com desfoque, e o conteudo
   transparecia por ele ao rolar (e o desfoque pesa na rolagem) */
.ud-header.sticky { background-color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* header e footer do tema alinhados à mesma largura do conteúdo (.qd-wrap),
   em vez das larguras fixas por faixa do .container do Bootstrap */
.ud-header .container, .ud-footer .container {
  width: min(1180px, calc(100% - 48px)); max-width: none; padding-left: 0; padding-right: 0;
}

/* ---------- botões (mesma métrica do .ud-main-btn) ---------- */
.qd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: 16px; line-height: 1;
  padding: 15px 25px; border-radius: 5px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  background: transparent; color: inherit;
  transition: all .3s ease-out 0s;
}
.qd-btn-solid { background: var(--primary-color); color: #fff; }
.qd-btn-solid:hover { background: #c33f16; color: #fff; }
.qd-btn-ghost { border-color: var(--qd-linha-forte); color: var(--heading-color); background: #fff; }
.qd-btn-ghost:hover { border-color: var(--primary-color); color: var(--primary-color); }
.qd-btn-white { background: #fff; color: var(--primary-color); }
.qd-btn-white:hover { background: var(--qd-primary-suave); color: var(--primary-color); }
.qd-btn-white-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.qd-btn-white-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.qd-btn-lg { padding: 18px 30px; font-size: 17px; }
.qd-btn-dark-ghost { border-color: var(--qd-sobre-escuro-2); color: var(--qd-sobre-escuro); }
.qd-btn-dark-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- banner das páginas internas (complementa .ud-page-banner) ---------- */
.ud-page-banner .qd-banner-lead { color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 28px; margin-top: 16px; max-width: 60ch; margin-inline: auto; }

/* ---------- hero ---------- */
.qd-hero { background: var(--primary-color); padding: 180px 0 130px; position: relative; overflow: hidden; }
.qd-hero .qd-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.qd-hero h1 { color: #fff; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.15; font-weight: 700; max-width: 14ch; }
.qd-hero .qd-lead { color: rgba(255, 255, 255, .88); margin-top: 24px; }
.qd-hero-note { margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.qd-hero .shape { position: absolute; z-index: 0; }
.qd-hero .shape-1 { top: 120px; left: -40px; opacity: .6; }
.qd-hero .shape-2 { bottom: 40px; right: -20px; opacity: .6; }
.qd-hero .qd-wrap { position: relative; z-index: 1; }
.qd-hero-lines {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  /* feixe mais discreto perto do texto; composto pela GPU */
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .1) 46%, #000 68%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, .1) 46%, #000 68%);
  will-change: transform;
}
.qd-cabos { opacity: .72; }
.pausado .qd-cabo-pulso, .pausado .qd-brilho, .pausado .qd-fiacao-pulso { animation-play-state: paused; }
.qd-cabo-pulso { stroke-dasharray: 5 95; animation: qd-cabo-pulso 8s linear infinite; }
@keyframes qd-cabo-pulso {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
.qd-brilho { animation: qd-brilho 3.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes qd-brilho {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50% { opacity: .9; transform: scale(1.4); }
}

.board { position: relative; }
.plate { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: var(--qd-sombra-forte); }
.sheet {
  position: absolute; right: -36px; bottom: -44px;
  width: min(270px, 48%);
  background: #fff; color: var(--heading-color);
  border-radius: 6px; box-shadow: var(--qd-sombra-forte);
  padding: 14px 16px 12px; font-size: 12px; line-height: 1.4;
}
.sheet-hd { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid var(--heading-color); padding-bottom: 8px; margin-bottom: 6px; }
.sheet-hd strong { font-weight: 700; font-size: 14px; }
.sheet-hd span { color: var(--body-color); font-size: 12px; }
.sheet-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--qd-linha); }
.sheet-row .q { color: var(--body-color); }
.sheet-row.mais { color: var(--body-color); font-style: italic; }
.sheet-row .v { text-align: right; min-width: 52px; }
.sheet-tot { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 8px; margin-top: 2px; }
.sheet-tot .lbl { color: var(--body-color); }
.sheet-tot .big { font-size: 17px; font-weight: 700; text-align: right; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--qd-linha-forte); color: var(--body-color); font-size: 12px; }
.sheet-foot .ok { color: var(--primary-color); font-weight: 600; }

/* momento de carga: as peças encaixam no trilho e as linhas do orçamento chegam juntas */
.part, .sheet-row, .sheet-tot, .sheet-foot {
  animation: qd-land .55s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.2s + var(--i) * .18s);
}
.part { transform-box: fill-box; transform-origin: center; }
@keyframes qd-land {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* LEDs da fonte 24 V: sequência de 3 s, um acende a cada 0,6 s, todos apagam aos 2,4 s */
.qd-led { fill: #0f1113; animation: qd-led-1 3s steps(1, end) infinite; }
.qd-led-brilho { fill: #fff; opacity: 0; animation: qd-brilho-1 3s steps(1, end) infinite; }
.qd-led.qd-led-2 { animation-name: qd-led-2; }
.qd-led.qd-led-3 { animation-name: qd-led-3; }
.qd-led-brilho.qd-led-2 { animation-name: qd-brilho-2; }
.qd-led-brilho.qd-led-3 { animation-name: qd-brilho-3; }
@keyframes qd-led-1 { 0%, 19.9% { fill: #0f1113; } 20%, 79.9% { fill: #ffd23f; } 80%, 100% { fill: #0f1113; } }
@keyframes qd-led-2 { 0%, 39.9% { fill: #0f1113; } 40%, 79.9% { fill: #ffd23f; } 80%, 100% { fill: #0f1113; } }
@keyframes qd-led-3 { 0%, 59.9% { fill: #0f1113; } 60%, 79.9% { fill: #ffd23f; } 80%, 100% { fill: #0f1113; } }
@keyframes qd-brilho-1 { 0%, 19.9% { opacity: 0; } 20%, 79.9% { opacity: .9; } 80%, 100% { opacity: 0; } }
@keyframes qd-brilho-2 { 0%, 39.9% { opacity: 0; } 40%, 79.9% { opacity: .9; } 80%, 100% { opacity: 0; } }
@keyframes qd-brilho-3 { 0%, 59.9% { opacity: 0; } 60%, 79.9% { opacity: .9; } 80%, 100% { opacity: 0; } }

/* ---------- tabela planilha × qd ---------- */
.qd-ledger .qd-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.qd-ledger .qd-lead { margin-top: 18px; }
.qd-table-wrap { overflow-x: auto; }
.qd-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.qd-table th, .qd-table td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--qd-linha); }
.qd-table th { font-weight: 600; color: var(--body-color); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--heading-color); padding-top: 0; }
.qd-table th.qd, .qd-table td.qd { color: var(--heading-color); }
.qd-table td.act { font-weight: 600; color: var(--heading-color); width: 22%; }
.qd-table td.old { color: var(--body-color); width: 36%; }
.qd-table td.qd { padding-left: 16px; border-left: 3px solid var(--primary-color); }

/* ---------- seção escura (produto) ---------- */
.qd-prod { background: var(--qd-escuro); color: var(--qd-sobre-escuro); }
.qd-prod .qd-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.qd-prod .qd-t-sec { color: #fff; }
.qd-prod .qd-lead { color: var(--qd-sobre-escuro-2); }
.qd-prod .qd-lead + .qd-lead { margin-top: 14px; }
.qd-prod .qd-cta { margin-top: 30px; }
.qd-shot { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--qd-escuro-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); background: #000; }
.qd-shot video, .qd-shot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.qd-shot-btn { width: 100%; padding: 0; cursor: pointer; position: relative; display: block; }
.qd-shot-btn img { transition: transform .4s ease-out, opacity .3s; }
.qd-shot-btn:hover img { transform: scale(1.02); opacity: .85; }
.qd-play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: var(--primary-color); box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  transition: transform .2s;
}
.qd-play::before {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -9px;
  border-left: 24px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.qd-shot-btn:hover .qd-play { transform: scale(1.08); }

/* ---------- modal do vídeo ---------- */
.qd-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(17, 22, 28, .88);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.qd-modal-box { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.qd-modal-box video { width: 100%; height: 100%; display: block; }
.qd-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.qd-modal-close:hover { background: var(--primary-color); }
.qd-modal-enter-active, .qd-modal-leave-active { transition: opacity .2s; }
.qd-modal-enter, .qd-modal-leave-to { opacity: 0; }
@media (max-width: 767px) {
  .qd-modal { padding: 12px; }
  .qd-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}
.qd-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-top: 1px solid var(--qd-escuro-2); }
.qd-stats div { padding: 16px 16px 0 0; }
.qd-stats b { display: block; font-size: 24px; font-weight: 700; color: #fff; }
.qd-stats span { color: var(--qd-sobre-escuro-2); font-size: 14px; }

/* ---------- recursos (grade de itens com ícone do tema) ---------- */
.qd-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; }
.qd-grid4 .ud-single-feature { margin-bottom: 0; }
.qd-tag-novo {
  font-size: 11px; font-weight: 600; color: var(--primary-color); background: var(--qd-primary-suave);
  padding: 2px 8px; border-radius: 30px; margin-left: 8px; vertical-align: 2px; text-transform: uppercase; letter-spacing: .03em;
}

/* ---------- recursos (histórias com imagem) ---------- */
.qd-stories { display: grid; gap: 100px; }
.qd-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.qd-story:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.qd-story:nth-child(even) .qd-story-text { order: 2; }
.qd-story h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.25; }
.qd-story p { margin-top: 16px; max-width: 52ch; }
.qd-story-img { border-radius: 10px; overflow: hidden; box-shadow: var(--qd-sombra); background: #fff; border: 1px solid var(--qd-alt); }
.qd-story-mock { border-radius: 12px; box-shadow: var(--qd-sombra-forte); line-height: 0; }
.qd-mock { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--qd-linha); }

/* ---------- planos (cards do tema) ---------- */
.qd-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.qd-plan {
  background: #fff; border: 1px solid var(--qd-alt); border-radius: 10px;
  box-shadow: var(--qd-sombra); padding: 40px 30px; position: relative;
  display: flex; flex-direction: column;
}
.qd-plan h3 { font-size: 20px; font-weight: 700; }
.qd-plan .price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; color: var(--heading-color); }
.qd-plan .price b { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.qd-plan .price small { font-size: 15px; color: var(--body-color); }
.qd-plan .price .rs { font-size: 18px; font-weight: 600; }
.qd-plan .for { margin-top: 10px; font-size: 15px; line-height: 24px; min-height: 48px; }
.qd-plan ul { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--qd-linha); display: grid; gap: 10px; font-size: 15.5px; color: var(--body-color); }
.qd-plan li { position: relative; padding-left: 20px; }
.qd-plan li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color); }
.qd-plan li sup { font-size: 11px; margin-left: 2px; opacity: .8; }
.qd-plan .qd-btn { margin-top: auto; width: 100%; }
.qd-plan ul { margin-bottom: 30px; }
.qd-plan.dest {
  background: linear-gradient(180deg, #ee5028 0%, #f38d49 100%);
  border: none; color: #fff;
}
.qd-plan.dest h3, .qd-plan.dest .price, .qd-plan.dest .for, .qd-plan.dest ul, .qd-plan.dest .price small { color: #fff; }
.qd-plan.dest ul { border-top-color: rgba(255, 255, 255, .3); }
.qd-plan.dest li::before { background: #fff; }
.qd-plan-beam {
  position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px);
  pointer-events: none; overflow: visible;
}
.qd-plan-beam rect {
  x: 2px; y: 2px; width: calc(100% - 4px); height: calc(100% - 4px); rx: 11px;
  fill: none; stroke-linecap: round;
}
.qd-plan-beam .trilho { stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; }
.qd-plan-beam .luz, .qd-plan-beam .halo {
  stroke: #fff; stroke-width: 3;
  stroke-dasharray: 12 88;
  animation: qd-beam 4.5s linear infinite;
}
.qd-plan-beam .halo { stroke-width: 9; stroke-opacity: .35; }
@keyframes qd-beam {
  to { stroke-dashoffset: -100; }
}
.qd-plan .tag {
  position: absolute; top: -13px; right: 24px;
  font-size: 12px; font-weight: 600; color: var(--primary-color); background: #fff;
  padding: 5px 12px; border-radius: 30px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); text-transform: uppercase; letter-spacing: .04em;
}
.qd-foot-notes { margin-top: 34px; display: grid; gap: 4px; font-size: 13.5px; color: var(--body-color); max-width: 90ch; }
.qd-foot-notes sup { margin-right: 4px; }

/* ---------- eletroduto que alimenta os planos ---------- */
.qd-plans-wrap { position: relative; }
.qd-fiacao { display: block; width: 100%; height: auto; overflow: visible; margin-bottom: -2px; }
.qd-fiacao.vertical { position: absolute; left: 0; top: 0; width: 44px; height: 100%; margin: 0; }
.qd-fiacao-pulso {
  stroke-dasharray: 9 91;
  animation: qd-fiacao-pulso 3s linear infinite;
}
@keyframes qd-fiacao-pulso {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

/* ---------- faq (cards do tema, sem JS) ---------- */
.qd-faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; align-items: start; }
.qd-faq-item {
  background: #fff; border: 1px solid var(--qd-alt); border-radius: 10px;
  box-shadow: var(--qd-sombra); margin-bottom: 30px;
}
.qd-faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: start; gap: 16px;
  padding: 22px 30px; font-weight: 600; font-size: 17px; color: var(--heading-color); line-height: 1.4;
}
.qd-faq-item summary::-webkit-details-marker { display: none; }
.qd-faq-item summary::before {
  content: ""; flex: 0 0 10px; width: 10px; height: 10px; margin-top: 7px;
  border-right: 2px solid var(--primary-color); border-bottom: 2px solid var(--primary-color);
  transform: rotate(-45deg); transition: transform .2s;
}
.qd-faq-item[open] summary::before { transform: rotate(45deg); }
.qd-faq-item summary:hover { color: var(--primary-color); }
.qd-faq-body { padding: 0 30px 24px 56px; color: var(--body-color); font-size: 16px; line-height: 26px; }

/* ---------- prosa (termos, artigos) ---------- */
.qd-prose { font-size: 16px; line-height: 28px; color: var(--body-color); }
.qd-prose > * + * { margin-top: 1.2em; }
.qd-prose h2 { font-size: 26px; margin-top: 2em; line-height: 1.3; }
.qd-prose h3 { font-size: 22px; margin-top: 1.8em; }
.qd-prose h4, .qd-prose h5 { font-size: 18px; margin-top: 1.6em; }
.qd-prose h2 + *, .qd-prose h3 + *, .qd-prose h4 + *, .qd-prose h5 + * { margin-top: .7em; }
.qd-prose ul, .qd-prose ol { padding-left: 24px; display: grid; gap: 6px; }
.qd-prose ul { list-style: disc outside; }
.qd-prose ol { list-style: decimal outside; }
.qd-prose li { display: list-item; }
.qd-prose li::marker { color: var(--primary-color); }
.qd-prose a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.qd-prose strong { font-weight: 700; color: var(--heading-color); }
.qd-prose img { display: block; border-radius: 8px; margin-inline: auto; max-width: 100% !important; height: auto !important; }
.qd-prose figure { margin: 2em 0; text-align: center; }
.qd-prose figcaption { font-size: 14px; font-style: italic; margin-top: 8px; }
.qd-prose blockquote { border-left: 4px solid var(--primary-color); padding: 15px 25px; font-style: italic; background: var(--qd-alt); border-radius: 0 5px 5px 0; }
.qd-prose code { background: var(--qd-alt); color: var(--primary-color); padding: 2px 6px; border-radius: 3px; font-size: 14px; }
.qd-prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border: 1px solid var(--qd-linha); border-radius: 8px; overflow: hidden; }
.qd-prose thead { background: var(--primary-color); }
.qd-prose th { color: #fff; font-weight: 600; padding: 14px 16px; text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.qd-prose td { padding: 14px 16px; border-top: 1px solid var(--qd-alt); vertical-align: top; line-height: 22px; }
.qd-prose tbody tr:nth-child(even) { background: #fafbfc; }
.qd-prose .ud-blog-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; }
.qd-prose .ud-blog-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qd-prose .contrato-item { padding-left: 24px; display: grid; gap: .8em; }

/* ---------- blog ---------- */
.qd-blog-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 50px; }
.qd-search { position: relative; flex: 1 1 100%; }
.qd-search input {
  width: 100%; height: 52px; padding: 0 44px 0 18px;
  border: 1.5px solid var(--qd-linha); border-radius: 8px; background: #fff;
  font: inherit; font-size: 15px; color: var(--heading-color); outline: none;
}
.qd-search input::placeholder { color: #9ca3af; }
.qd-search input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(223, 74, 28, .12); }
.qd-search .clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--qd-alt); cursor: pointer; color: var(--body-color);
  font-size: 18px; line-height: 1;
}
.qd-search .clear:hover { background: var(--primary-color); color: #fff; }
.qd-filter { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--body-color); background: var(--qd-primary-suave); padding: 10px 18px; border-radius: 5px; }
.qd-filter strong { color: var(--primary-color); }
.qd-filter a { color: var(--heading-color); font-weight: 600; }
.qd-filter a:hover { color: var(--primary-color); }
.qd-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; }
.qd-post { display: flex; flex-direction: column; }
.qd-post-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--qd-alt); margin-bottom: 20px; }
.qd-post-thumb a { display: block; height: 100%; width: 100%; }
.qd-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qd-post-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--body-color); }
.qd-post-meta a, .qd-post-meta .cat { color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.qd-post-meta a:hover { text-decoration: underline; }
.qd-post h3 { font-size: 20px; font-weight: 700; line-height: 1.35; margin-top: 10px; }
.qd-post h3 a { color: var(--heading-color); }
.qd-post h3 a:hover { color: var(--primary-color); }
.qd-post p { margin-top: 10px; font-size: 15.5px; line-height: 25px; }
.qd-posts-empty { grid-column: 1 / -1; color: var(--body-color); padding: 40px 0; }
.qd-pager { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.qd-pager a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 6px; background: var(--qd-alt); color: var(--heading-color); font-weight: 600; font-size: 14px;
}
.qd-pager a:hover { background: var(--primary-color); color: #fff; }
.qd-pager a.is-current { background: var(--primary-color); color: #fff; pointer-events: none; }
.qd-pager a.is-disabled { opacity: .4; pointer-events: none; }

.qd-article-thumb { max-width: 820px; margin: -120px auto 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--qd-sombra-forte); position: relative; z-index: 1; }
.qd-article-thumb img { width: 100%; max-height: 400px; object-fit: cover; object-position: top; display: block; }
.qd-article-body { padding-block: 60px 90px; }
.qd-article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--body-color); margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--qd-linha); }
.qd-article-meta a { color: var(--primary-color); font-weight: 600; }
.qd-article-foot { margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--qd-linha); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- faixa de chamada ---------- */
.qd-cta-band { background: var(--primary-color); color: #fff; padding-block: 80px; }
.qd-cta-band .qd-wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.qd-cta-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.25; max-width: 22ch; }
.qd-cta-band p { color: rgba(255, 255, 255, .88); margin-top: 12px; max-width: 50ch; }

/* ---------- responsivo ---------- */
@media (max-width: 1279px) {
  /* sem margem lateral sobrando, a folha do orçamento fica dentro da área de conteúdo */
  .sheet { right: -8px; }
}
@media (max-width: 1024px) {
  .qd-grid4 { grid-template-columns: repeat(2, 1fr); }
  .qd-hero .qd-wrap, .qd-prod .qd-wrap, .qd-ledger .qd-wrap, .qd-story, .qd-story:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .qd-story:nth-child(even) .qd-story-text { order: 0; }
  .qd-hero .qd-wrap { gap: 64px; }
  .qd-hero-lines { -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .1) 50%, #000 68%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .1) 50%, #000 68%); }
  .qd-hero > .qd-wrap > div:first-child { text-align: center; }
  .qd-hero h1, .qd-hero .qd-lead { max-width: none; margin-inline: auto; }
  .qd-hero .qd-lead { max-width: 60ch; }
  .qd-hero .qd-cta { justify-content: center; }
  .board { margin-bottom: 40px; }
  .qd-faq-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .qd-plans-wrap { max-width: 580px; margin-inline: auto; padding-left: 56px; }
  .qd-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .qd-sec { padding-block: 70px; }
  .qd-hero { padding: 150px 0 80px; }
  .qd-hero .qd-cta .qd-btn { width: min(100%, 320px); }
  .qd-posts { grid-template-columns: minmax(0, 1fr); }
  .qd-plans-wrap { padding-left: 46px; }
  .qd-plan { padding: 32px 22px 28px; }
  .qd-plan .price b { font-size: 34px; }
  .qd-grid4 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  /* tabela planilha x qd vira blocos empilhados */
  .qd-table { font-size: 15px; }
  .qd-table thead { display: none; }
  .qd-table, .qd-table tbody, .qd-table tr, .qd-table td { display: block; width: auto; }
  .qd-table tr { padding: 18px 0 20px; border-bottom: 1px solid var(--qd-linha); }
  .qd-table tr:first-child { border-top: 2px solid var(--heading-color); }
  .qd-table td, .qd-table td.act, .qd-table td.old { padding: 0; border: 0; width: auto; }
  .qd-table td.act { font-size: 17px; margin-bottom: 10px; }
  .qd-table td.old, .qd-table td.qd { padding-left: 14px; border-left: 3px solid var(--qd-linha); margin-top: 10px; }
  .qd-table td.qd { border-left-color: var(--primary-color); }
  .qd-table td.old::before, .qd-table td.qd::before {
    content: attr(data-label); display: block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; color: var(--body-color); margin-bottom: 2px;
  }
  .qd-table td.qd::before { color: var(--primary-color); }
  .qd-stats { grid-template-columns: minmax(0, 1fr); }
  .sheet { position: static; width: 100%; margin-top: 16px; }
  .board { margin-bottom: 0; }
  .qd-sec-head { flex-direction: column; align-items: start; }
  .qd-stories { gap: 64px; }
  .qd-article-thumb { margin-top: -90px; }
}
@media (prefers-reduced-motion: reduce) {
  .part, .sheet-row, .sheet-tot, .sheet-foot { animation: none; }
  .qd-plan-beam .luz { animation: none; stroke-dasharray: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; }
  .qd-plan-beam .halo { display: none; }
  .qd-fiacao-pulso { animation: none; stroke-dasharray: none; opacity: .35; }
  .qd-led { animation: none; fill: #ffd23f; }
  .qd-led-brilho { animation: none; opacity: .9; }
}
