/* ==============================================================
   Apresentação do orçamento (deck da proposta).
   Extraído do index.html na onda 38 para ser compartilhado com a
   página pública proposta.html — o cliente tem de ver o mesmo deck,
   pixel a pixel, que o vendedor revisou antes de mandar o link.
   ============================================================== */
  /* --- moldura (interface) — BaseFly, etapa 7 -----------------------------
     A fronteira desta folha: daqui até .pres-scroll é INTERFACE, e segue o
     sistema. De .pres-page para baixo é DOCUMENTO — o deck TURNBIM saído do
     PPTX, com o azul e o laranja da proposta impressa. Não foi repintado de
     propósito: o deck compartilhado é um instantâneo congelado, e mexer na cor
     aqui mudaria a cara de propostas já enviadas (e já aceitas). ------------ */
  #presentation-overlay { position: fixed; inset: 0; z-index: 4000; background: var(--brand-base); display: none; flex-direction: column; }
  #presentation-overlay.open { display: flex; }
  .pres-toolbar { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-3) var(--s-4); background: var(--brand-base); color: var(--on-dark); border-bottom: 1px solid var(--on-dark-line); }
  .pres-tb-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
  .pres-tb-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
  .pres-legend { font-size: 12px; color: var(--brand-sky); display: flex; align-items: center; gap: var(--s-1); cursor: pointer; }
  .pres-btn { border: 1px solid var(--on-dark-line); background: transparent; color: var(--on-dark); font-family: var(--font-text); font-size: 13px; font-weight: 500; min-height: 32px; padding: 0 var(--s-3); border-radius: var(--r-sm); cursor: pointer; }
  .pres-btn:hover { border-color: var(--brand-sky); }
  .pres-btn:focus-visible { outline: 2px solid var(--brand-sky); outline-offset: 2px; }
  /* ação de conversão: o único laranja da tela (seção 5.1) */
  .pres-btn.primary { background: var(--brand-signal); border-color: var(--brand-signal); color: var(--brand-base); font-weight: 600; }
  .pres-btn.primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
  .pres-scroll { flex: 1; overflow: auto; padding: var(--s-6) var(--s-3) var(--s-16); }
  .pres-deck { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; counter-reset: pg; font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

  .pres-page { background: #fff; color: #1b1c22; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.35); overflow: hidden; position: relative; display: flex; flex-direction: column; min-height: 1120px; counter-increment: pg; }
  .pres-body { padding: 44px 50px; flex: 1; }
  .pres-foot { background: #e8531e; color: #fff; font-size: 12px; font-weight: 600; padding: 12px 50px; display: flex; justify-content: space-between; }
  .pres-foot .pgno::before { content: counter(pg, decimal-leading-zero); }
  .pres-imgpage { min-height: auto; }
  .pres-imgpage img { width: 100%; height: auto; display: block; }
  .pres-overlaypage { container-type: inline-size; }
  .pres-ov-field { overflow: hidden; }
  .pres-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
  .pres-hlogo { display: flex; align-items: center; gap: 9px; }
  .pres-mark { width: 30px; height: 30px; border-radius: 8px; background: conic-gradient(from 210deg, #3f43c7, #2c2e8c, #e8531e, #3f43c7); }
  .pres-word { font-weight: 800; font-size: 17px; } .pres-word b { color: #2c2e8c; }
  .pres-plabel { font-size: 11px; color: #6d6d78; font-weight: 700; letter-spacing: .1em; }
  .pres-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #e8531e; }
  .pres-title { font-size: 26px; font-weight: 800; color: #2c2e8c; margin: 4px 0 20px; text-wrap: balance; }
  .pres-title .n { color: #e8531e; }
  #presentation-overlay p { line-height: 1.6; color: #33343c; margin: 0 0 12px; }
  .pres-lead { font-size: 15px; }
  .pres-note { font-size: 12.5px; color: #6d6d78; margin: -8px 0 16px; }
  .pres-dyn { background: #fbe6dc; border-bottom: 2px solid #e8531e; border-radius: 3px; padding: 0 4px; font-weight: 700; color: #7a2c11; }
  #presentation-overlay.pres-hide-dyn .pres-dyn { background: transparent; border-color: transparent; color: inherit; padding: 0; }

  .pres-cover { background: radial-gradient(120% 90% at 70% 15%, #2a2b52, #1b1c22 55%, #101015); color: #fff; }
  .pres-cover .pres-body { display: flex; flex-direction: column; }
  .pres-cv-top { display: flex; justify-content: space-between; align-items: flex-start; }
  .pres-cv-meta { text-align: right; font-size: 15px; line-height: 1.9; }
  .pres-cv-meta .v { color: #e8531e; font-weight: 800; }
  .pres-cv-logo { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; }
  .pres-cv-mark { width: 44px; height: 44px; border-radius: 12px; background: conic-gradient(from 210deg, #3f43c7, #6d3bd6, #e8531e, #3f43c7); }
  .pres-cv-center { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .pres-cv-mlg { width: 92px; height: 92px; border-radius: 22px; background: conic-gradient(from 210deg, #3f43c7, #6d3bd6, #e8531e, #3f43c7); margin-bottom: 24px; }
  .pres-cv-product { font-size: 58px; font-weight: 800; line-height: 1; }
  .pres-cv-sub { margin-top: 12px; font-size: 15px; color: #c8c9e0; letter-spacing: .28em; text-transform: uppercase; }
  .pres-cv-ver { margin-top: 36px; font-size: 38px; font-weight: 300; letter-spacing: .3em; }
  .pres-cv-strip { background: #e8531e; color: #fff; text-align: center; padding: 15px; font-weight: 700; }

  .pres-kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 4px 0 18px; font-size: 15px; }
  .pres-kv dt { font-weight: 800; } .pres-kv dd { margin: 0; }
  .pres-callout { border-left: 4px solid #2c2e8c; background: #f7f7fa; border-radius: 8px; padding: 13px 16px; margin: 12px 0; }
  .pres-callout h3 { font-size: 14px; color: #2c2e8c; margin: 0 0 5px; }
  .pres-callout p { margin: 0; font-size: 14px; }
  .pres-letter { font-size: 15px; line-height: 2; } .pres-letter .k { color: #e8531e; font-weight: 700; }
  .pres-subject { display: inline-block; background: #2c2e8c; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .06em; padding: 7px 16px; border-radius: 20px; margin: 20px 0 8px; }
  .pres-subject-b { background: #e8531e; color: #fff; border-radius: 14px; padding: 15px 18px; font-weight: 700; font-size: 15px; line-height: 1.5; }
  .pres-sign { margin-top: 40px; } .pres-sign b { display: block; } .pres-sign small { color: #6d6d78; }

  .pres-disc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .pres-disc { break-inside: avoid; }
  .pres-disc h3 { font-size: 12px; font-weight: 800; color: #fff; background: #2c2e8c; padding: 6px 12px; border-radius: 7px; text-transform: uppercase; display: flex; justify-content: space-between; }
  .pres-disc h3 .chip { background: rgba(255,255,255,.22); font-size: 10px; padding: 1px 8px; border-radius: 10px; }
  .pres-disc ul { list-style: none; margin: 8px 0 0; padding: 0; }
  .pres-disc li { display: flex; gap: 8px; font-size: 13px; padding: 3px 4px; }
  .pres-tick { width: 16px; height: 16px; border-radius: 4px; background: #16a34a; color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }

  #presentation-overlay table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .pres-tbl th { text-align: left; background: #2c2e8c; color: #fff; padding: 9px 14px; font-size: 12px; text-transform: uppercase; }
  .pres-tbl td { padding: 9px 14px; border-bottom: 1px solid #e5e5ec; }
  .pres-tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
  .pres-tbl .total td { background: #f7f7fa; font-weight: 800; }
  .pres-valuebox { margin-top: 18px; background: #1b1c22; color: #fff; border-radius: 14px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
  .pres-valuebox small { color: #bfc0cf; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
  .pres-valuebox .big { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .pres-valuebox .big span { color: #e8531e; }

  .pres-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0 24px; }
  .pres-opt { border: 1px solid #e5e5ec; border-radius: 14px; padding: 20px 16px 16px; position: relative; }
  .pres-opt.chosen { border-color: #e8531e; box-shadow: 0 0 0 2px #fbe6dc; }
  .pres-opt .tagc { position: absolute; top: -11px; left: 14px; background: #e8531e; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 11px; border-radius: 10px; text-transform: uppercase; }
  .pres-opt h3 { font-size: 16px; color: #2c2e8c; margin: 2px 0; }
  .pres-opt .lod { font-size: 11px; color: #6d6d78; text-transform: uppercase; letter-spacing: .06em; }
  .pres-opt .price { font-size: 23px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
  .pres-opt .price span { color: #e8531e; font-size: 14px; }
  .pres-opt ul { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; }
  .pres-opt li { padding: 3px 0; display: flex; gap: 7px; } .pres-opt li::before { content: "›"; color: #e8531e; font-weight: 800; }
  .pres-cmp td { text-align: center; } .pres-cmp td:first-child { text-align: left; font-weight: 700; }
  .pres-cmp .hl { background: #fbe6dc; } .pres-cmp .yes { color: #16a34a; font-weight: 800; } .pres-cmp .no { color: #c2c2cc; }

  .pres-att-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
  .pres-att { border: 1px solid #e5e5ec; border-radius: 12px; overflow: hidden; background: #f7f7fa; break-inside: avoid; }
  .pres-att .thumb { height: 120px; width: 100%; display: block; }
  .pres-att .cap { padding: 9px 12px; font-size: 12px; } .pres-att .cap b { display: block; } .pres-att .cap small { color: #6d6d78; }
  .pres-formev { margin-top: 20px; border: 1px solid #e5e5ec; border-left: 4px solid #2c7a8c; border-radius: 12px; padding: 15px 18px; }
  .pres-formev h3 { font-size: 14px; color: #2c7a8c; display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
  .pres-badge { background: #16a34a; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 10px; }
  .pres-ans { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .pres-ans span { background: #f7f7fa; border: 1px solid #e5e5ec; border-radius: 20px; padding: 5px 12px; font-size: 12px; } .pres-ans b { color: #2c2e8c; }

  .pres-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 18px 0 22px; }
  .pres-stat { background: #f7f7fa; border: 1px solid #e5e5ec; border-radius: 12px; padding: 16px; text-align: center; }
  .pres-stat b { display: block; font-size: 26px; color: #e8531e; font-weight: 800; } .pres-stat small { color: #6d6d78; font-size: 12px; }
  .pres-logoh { font-size: 11px; font-weight: 800; color: #2c2e8c; text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 9px; }
  .pres-logos { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
  .pres-logos span { border: 1px solid #e5e5ec; border-radius: 9px; padding: 12px 6px; text-align: center; font-size: 12px; font-weight: 800; color: #565774; }
  .pres-ceo { display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: start; }
  .pres-ceo .role { color: #e8531e; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
  .pres-ceo h3 { color: #2c2e8c; font-size: 20px; margin: 2px 0 6px; }
  .pres-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; } .pres-chips span { background: #f7f7fa; border: 1px solid #e5e5ec; border-radius: 18px; padding: 5px 12px; font-size: 11.5px; } .pres-chips b { color: #2c2e8c; }
  .pres-teamnote { margin-top: 20px; background: #1b1c22; color: #fff; border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; gap: 16px; } .pres-teamnote .big { font-size: 30px; font-weight: 800; color: #e8531e; }
  .pres-certs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
  .pres-cert { border: 1px solid #e5e5ec; border-radius: 12px; padding: 14px 10px; text-align: center; } .pres-cert .ic { font-size: 22px; } .pres-cert b { display: block; font-size: 12px; color: #2c2e8c; margin-top: 4px; } .pres-cert small { color: #6d6d78; font-size: 10.5px; }
  .pres-imgslot { border: 2px dashed #c3c6d4; border-radius: 12px; background: repeating-linear-gradient(45deg,#f5f6fa,#f5f6fa 11px,#eceef5 11px,#eceef5 22px); display: flex; align-items: center; justify-content: center; color: #8a8d9c; font-size: 12px; font-weight: 700; text-align: center; padding: 10px; }
  .pres-case h4 { font-size: 11px; font-weight: 800; color: #e8531e; text-transform: uppercase; letter-spacing: .1em; margin: 16px 0 9px; }
  .pres-photorow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pres-exclg { columns: 2; column-gap: 28px; font-size: 12.5px; color: #40414c; }
  .pres-exclg p { break-inside: avoid; margin: 0 0 9px; padding-left: 15px; position: relative; line-height: 1.5; } .pres-exclg p::before { content: "•"; color: #e8531e; position: absolute; left: 2px; font-weight: 800; }
  .pres-mkt { width: 100%; border-collapse: collapse; font-size: 12px; margin: 10px 0 4px; }
  .pres-mkt th, .pres-mkt td { border: 1px solid #e5e5ec; padding: 8px 10px; text-align: left; vertical-align: top; }
  .pres-mkt th { background: #f7f7fa; color: #2c2e8c; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
  #presentation-overlay.pres-editing [data-pkey] { outline: 1px dashed var(--brand-signal); outline-offset: 2px; border-radius: 3px; cursor: text; }
  #presentation-overlay.pres-editing [data-pkey]:focus { outline: 2px solid var(--brand-signal); background: var(--warning-bg); }

  @media (max-width: 720px) {
    .pres-body { padding: 26px 22px; }
    .pres-options, .pres-disc-grid { grid-template-columns: 1fr; }
    .pres-stats, .pres-logos, .pres-certs, .pres-att-grid { grid-template-columns: repeat(2,1fr); }
    .pres-ceo { grid-template-columns: 1fr; }
    .pres-cv-product { font-size: 42px; }
  }
  @media print {
    body.pres-printing > * { display: none !important; }
    body.pres-printing > #presentation-overlay { display: block !important; position: static !important; background: #fff !important; }
    #presentation-overlay .pres-toolbar { display: none !important; }
    #presentation-overlay .pres-scroll { overflow: visible !important; padding: 0 !important; }
    #presentation-overlay .pres-deck { max-width: none; gap: 0; }
    #presentation-overlay .pres-page { box-shadow: none; border-radius: 0; page-break-after: always; }
    #presentation-overlay .pres-dyn { background: transparent !important; border: none !important; color: inherit !important; padding: 0 !important; }
    #presentation-overlay [data-pkey] { outline: none !important; background: transparent !important; }
  }
