﻿/* Plano de corte grátis (www.gransoftweb.com/Plano-de-Corte-Gratis)
   Página autônoma: não depende do main.css do site. Cores e medidas do design system
   "Gransoftweb Diagonal" (Navy #16233F, Teal #2FBF9B, confirmar #0D6EFD). */

.pcg, .pcg * { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.pcg-body { margin: 0; background: #F7F7FA; }

.pcg {
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    color: #16233F;
    background: #F7F7FA;
    min-height: 100vh;
    font-size: 14px;
    line-height: 22px;
}
.pcg a { color: #126F65; }
.pcg a:hover { color: #0C544C; }
.pcg h1, .pcg h2, .pcg h3, .pcg p { margin: 0; }
.pcg [hidden] { display: none !important; }
.pcg-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pcg-num { font-variant-numeric: tabular-nums; }

/* ---------- Campos e botões ---------- */
.pcg-in {
    width: 100%; height: 44px; border: 1px solid #76899F; border-radius: 4px; background: #FFFFFF; color: #16233F;
    font: 500 14px/22px "Poppins", "Segoe UI", system-ui, sans-serif; padding: 0 12px;
    font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.pcg-in::placeholder { color: #5A6C82; font-weight: 400; }
.pcg-in:hover { border-color: #4A5A70; }
.pcg-in:focus { outline: 2px solid #126F65; outline-offset: 2px; border-color: #126F65; }
select.pcg-in { cursor: pointer; padding-right: 6px; }
textarea.pcg-in { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 22px; }
.pcg-label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: #4A5A70; min-width: 0; }

.pcg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 14px;
    border-radius: 4px; border: 1px solid #76899F; background: #FFFFFF; color: #16233F;
    font: 600 13px/20px "Poppins", "Segoe UI", system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .18s cubic-bezier(.32,.72,0,1), box-shadow .18s cubic-bezier(.32,.72,0,1), background-color .15s, border-color .15s;
}
.pcg a.pcg-btn, .pcg a.pcg-btn:hover { color: #16233F; }
.pcg-btn:hover { background: #F3F6F9; }
.pcg-btn:focus-visible { outline: 2px solid #126F65; outline-offset: 2px; }
.pcg-btn:active { transform: scale(.98); }
.pcg-btn:disabled { color: #5A6C82; cursor: not-allowed; background: #EEF1F5; transform: none; }
.pcg-btn svg { flex: none; }

.pcg-btn--primary, .pcg a.pcg-btn--primary { border: 0; background: #0D6EFD; color: #FFFFFF; padding: 0 18px; }
.pcg-btn--primary:hover, .pcg a.pcg-btn--primary:hover { background: #0B5ED7; color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(13,110,253,.6); }
.pcg-btn--primary:disabled { background: #B9C7D4; color: #16233F; box-shadow: none; }
.pcg-btn--dark, .pcg a.pcg-btn--dark { background: #1E3050; border-color: #6E8CB0; color: #FFFFFF; }
.pcg-btn--dark:hover, .pcg a.pcg-btn--dark:hover { background: #263B61; color: #FFFFFF; }
.pcg-btn--dark:focus-visible, .pcg-onnavy:focus-visible { outline-color: #2FBF9B; }
.pcg-btn--link { border: 0; background: transparent; color: #126F65; padding: 0 10px; }
.pcg-btn--link:hover { background: #E8F3F1; }
.pcg-btn--icon { width: 44px; padding: 0; flex: none; border-color: #D9DDE3; color: #4A5A70; }
.pcg-btn--lg { height: 48px; padding: 0 22px; font-size: 14px; }
.pcg-btn--dashed { height: 48px; border-style: dashed; }
.pcg-btn[aria-pressed="true"] { background: #E8F3F1; border-color: #126F65; }

/* ---------- Cabeçalho e hero ---------- */
.pcg-top { background: #16233F; border-bottom: 1px solid #2A3D63; }
.pcg-top__in { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.pcg-top__logo { display: flex; align-items: center; padding: 6px 0; }
.pcg-top__logo img { height: 26px; width: auto; display: block; }
.pcg-nav { display: flex; gap: 4px; flex: 1 1 auto; justify-content: flex-end; }
.pcg .pcg-navlink { color: #FFFFFF; text-decoration: none; font: 500 14px/22px "Poppins", sans-serif; padding: 11px 12px; border-radius: 4px; }
.pcg .pcg-navlink:hover { color: #2FBF9B; }
.pcg .pcg-navlink:focus-visible { outline: 2px solid #2FBF9B; outline-offset: 2px; }
.pcg-top__cta { margin-left: auto; }

.pcg-hero { background: #16233F; color: #FFFFFF; }
.pcg-hero__in { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 56px; }
.pcg-hero__txt { flex: 999 1 520px; min-width: 0; padding: 64px 0 128px; }
.pcg-hero__lista { flex: 1 1 340px; min-width: 0; padding: 64px 0 128px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.pcg-selo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #2A3D63; border-radius: 4px; font-size: 12px; font-weight: 500; color: #B9C7D4; }
.pcg-selo i { width: 8px; height: 8px; border-radius: 4px; background: #2FBF9B; display: inline-block; }
.pcg-h1 { margin-top: 20px !important; font-size: 46px; line-height: 54px; font-weight: 700; text-transform: uppercase; max-width: 700px; color: #FFFFFF; }
.pcg-h1 span { color: #2FBF9B; }
.pcg-hero__sub { margin-top: 20px !important; font-size: 17px; line-height: 28px; color: #B9C7D4; max-width: 580px; }
.pcg-hero__acoes { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.pcg-check { display: flex; gap: 14px; align-items: flex-start; }
.pcg-check svg { flex: none; margin-top: 2px; }
.pcg-check b { display: block; font-size: 15px; font-weight: 600; line-height: 22px; }
.pcg-check span { font-size: 13px; line-height: 20px; color: #B9C7D4; }

/* ---------- Calculadora ---------- */
.pcg-calc { margin-top: -80px; padding-bottom: 72px; }
.pcg-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pcg-card { background: #FFFFFF; border-radius: 8px; box-shadow: 0 8px 24px -6px rgba(22,35,63,0.20), 0 2px 6px rgba(22,35,63,0.08); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pcg-card--chapas { flex: 1 1 380px; }
.pcg-card--pecas { flex: 999 1 560px; }
.pcg-card--plano { box-shadow: 0 1px 2px rgba(22,35,63,0.07), 0 0 0 1px rgba(22,35,63,0.06); }
.pcg-card__cab { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.pcg-card__cab h2 { font-size: 18px; line-height: 26px; font-weight: 600; flex-grow: 1; }
.pcg-passo { width: 28px; height: 28px; border-radius: 4px; background: #E8F3F1; color: #126F65; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pcg-conta { font-size: 12px; font-weight: 500; color: #4A5A70; }
.pcg-dica { font-size: 12px; line-height: 18px; color: #5A6C82; }
.pcg-sub { font-size: 14px; font-weight: 600; line-height: 22px; }

.pcg-linha { display: flex; gap: 8px; align-items: flex-end; }
.pcg-linha .pcg-label { flex: 1 1 0; }
.pcg-linha .pcg-label--qtd { flex: 0 0 68px; }
.pcg-sigla { flex: none; width: 44px; height: 44px; border-radius: 4px; background: #16233F; color: #FFFFFF; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.pcg-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.pcg-acoes > .pcg-btn { flex: 1 1 140px; }
.pcg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pcg-bloco { border-top: 1px solid #D9DDE3; padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }

.pcg-imp { border: 1px solid #D9DDE3; background: #F7F7FA; border-radius: 4px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pcg-imp__txt { font-size: 12px; line-height: 18px; color: #4A5A70; }
.pcg-imp input[type=file] { font: 400 13px/20px "Poppins", sans-serif; color: #16233F; min-height: 44px; padding: 10px 0; max-width: 100%; }
.pcg-imp__fim { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.pcg-aviso { font-size: 13px; line-height: 20px; color: #8A5300; background: #FDF1D6; border-radius: 4px; padding: 8px 12px; }
.pcg-erro { font-size: 13px; line-height: 20px; color: #B93245; background: #FCE7EA; border-radius: 4px; padding: 8px 12px; }

.pcg-pecas-cab { display: flex; gap: 8px; font-size: 12px; font-weight: 500; color: #4A5A70; padding-left: 40px; }
.pcg-peca { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pcg-peca__n { flex: none; width: 32px; height: 32px; border-radius: 4px; border: 1px solid; color: #16233F; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pcg-c-nome { flex: 1 1 160px; }
.pcg-c-med { flex: 1 0 92px; max-width: 140px; }
.pcg-c-qtd { flex: 0 0 68px; }
.pcg-c-veio { flex: 1 0 140px; max-width: 180px; }
.pcg-c-x { flex: 0 0 44px; }
.pcg-pecas-cab .pcg-c-med { flex: 0 0 92px; }

.pcg-gerar { margin-top: 24px; padding: 20px 24px; flex-direction: row; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.pcg-gerar__txt { flex: 999 1 280px; min-width: 0; }
.pcg-gerar__txt b { display: block; font-size: 16px; font-weight: 600; line-height: 24px; }
.pcg-gerar__txt span { font-size: 13px; line-height: 20px; color: #4A5A70; }
.pcg-gerar__txt span.pcg-ink-erro { color: #B93245; }
.pcg-gerar .pcg-btn { flex: 1 1 240px; height: 52px; font-size: 15px; }
.pcg-gira { animation: pcg-gira .8s linear infinite; }
@keyframes pcg-gira { to { transform: rotate(360deg); } }

/* ---------- Seções de conteúdo ---------- */
.pcg-sec { padding-top: 80px; padding-bottom: 80px; }
.pcg-faixa { background: #FFFFFF; border-top: 1px solid #D9DDE3; border-bottom: 1px solid #D9DDE3; }
.pcg-olho { font-size: 13px; font-weight: 600; color: #126F65; }
.pcg-h2 { margin-top: 8px !important; font-size: 34px; line-height: 42px; font-weight: 700; }
.pcg-lead { margin-top: 14px !important; font-size: 16px; line-height: 26px; color: #4A5A70; }
.pcg-tres { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pcg-tres > div { border: 1px solid #D9DDE3; border-radius: 8px; padding: 24px; }
.pcg-tres .pcg-big { font-size: 32px; line-height: 38px; font-weight: 700; color: #126F65; }
.pcg-tres h3 { margin-top: 12px; font-size: 17px; line-height: 24px; font-weight: 600; }
.pcg-tres p { margin-top: 8px; font-size: 14px; line-height: 22px; color: #4A5A70; }

.pcg-sis { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.pcg-sis__txt { flex: 1 1 340px; min-width: 0; }
.pcg-sis__tab { flex: 999 1 520px; min-width: 0; background: #FFFFFF; border-radius: 8px; box-shadow: 0 1px 2px rgba(22,35,63,0.07), 0 0 0 1px rgba(22,35,63,0.04); overflow-x: auto; }
.pcg-tab { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.pcg-tab thead tr { background: #EEF1F5; }
.pcg-tab th, .pcg-tab td { text-align: left; padding: 14px 12px; }
.pcg-tab th:first-child { padding-left: 20px; }
.pcg-tab thead th { font-size: 12px; font-weight: 500; color: #4A5A70; }
.pcg-tab tbody tr { border-top: 1px solid #D9DDE3; }
.pcg-tab tbody th { font-weight: 500; }
.pcg-tab tbody th small { display: block; font-size: 12px; line-height: 18px; font-weight: 400; color: #5A6C82; }
.pcg-tab td { font-weight: 500; white-space: nowrap; color: #4A5A70; }
.pcg-tab td.pcg-sim { color: #126F65; font-weight: 600; }

.pcg-faq { max-width: 860px; }
.pcg-faq details { border-top: 1px solid #D9DDE3; padding: 6px 0; }
.pcg-faq details:last-child { border-bottom: 1px solid #D9DDE3; }
.pcg-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; min-height: 56px; font-size: 16px; font-weight: 600; }
.pcg-faq summary::-webkit-details-marker { display: none; }
.pcg-faq summary:focus-visible { outline: 2px solid #126F65; outline-offset: 2px; border-radius: 4px; }
.pcg-faq summary span { flex-grow: 1; }
.pcg-faq summary svg { transition: transform .2s cubic-bezier(.32,.72,0,1); flex: none; }
.pcg-faq details[open] summary svg { transform: rotate(45deg); }
.pcg-faq p { margin: 0 0 18px; font-size: 15px; line-height: 24px; color: #4A5A70; max-width: 720px; }

/* ---------- Resultado ---------- */
.pcg-res-topo { background: #16233F; color: #FFFFFF; }
.pcg-res-topo__in { padding-top: 32px; padding-bottom: 112px; }
.pcg-res-topo .pcg-h1 { font-size: 40px; line-height: 48px; margin-top: 24px !important; }
.pcg-res-topo p { margin-top: 10px; font-size: 16px; line-height: 26px; color: #B9C7D4; max-width: 720px; }
.pcg-res { margin-top: -80px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.pcg-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.pcg-status i { width: 7px; height: 7px; border-radius: 4px; background: currentColor; display: inline-block; }
.pcg-status--ok { background: #E8F3F1; color: #126F65; }
.pcg-status--parcial { background: #FDF1D6; color: #8A5300; }
.pcg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pcg-kpi { background: #EEF1F5; border-radius: 4px; padding: 16px; }
.pcg-kpi small { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: #4A5A70; }
.pcg-kpi b { display: block; font-size: 32px; line-height: 38px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pcg-kpi span { font-size: 12px; color: #4A5A70; }
.pcg-kpi--navy { background: #16233F; color: #FFFFFF; }
.pcg-kpi--navy small, .pcg-kpi--navy span { color: #B9C7D4; }
.pcg-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pcg-barra__vao { flex-grow: 1; }
.pcg-fora { background: #FDF1D6; border-radius: 4px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 20px; }
.pcg-fora b { font-size: 14px; font-weight: 600; color: #8A5300; }
.pcg-fora em { font-style: normal; color: #4A5A70; }
.pcg-nota { font-size: 13px; line-height: 20px; color: #4A5A70; }

.pcg-plano__cab { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pcg-plano__cab h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.pcg-plano__cab > span { font-size: 13px; color: #4A5A70; }
.pcg-plano__cab > .pcg-pct { font-weight: 600; color: #16233F; }
.pcg-medidor { width: 120px; height: 8px; border-radius: 4px; background: #EEF1F5; overflow: hidden; display: inline-block; }
.pcg-medidor i { display: block; height: 100%; background: #2FBF9B; border-radius: 4px; }
.pcg-desenho { display: flex; gap: 8px; align-items: stretch; }
.pcg-desenho__lado { flex: none; width: 18px; display: flex; align-items: center; justify-content: center; }
.pcg-desenho__lado span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 500; color: #5A6C82; white-space: nowrap; }
.pcg-desenho__area { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pcg-desenho svg { display: block; width: 100%; height: auto; border: 1.5px solid #16233F; border-radius: 4px; background: #E3E7EC; }
.pcg-desenho svg text { font-family: "Poppins", "Segoe UI", system-ui, sans-serif; }
.pcg-desenho__base { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; color: #5A6C82; }
.pcg-desenho__base i { flex: 1 1 0; height: 1px; background: #D9DDE3; }
.pcg-desenho__base b { color: #126F65; font-weight: 600; }
.pcg-sobras { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; font-weight: 500; color: #4A5A70; }
.pcg-sobras span.pcg-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px; border: 1px dashed #76899F; color: #16233F; font-variant-numeric: tabular-nums; }
.pcg-sobras .pcg-cortes-leg { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.pcg-sobras .pcg-cortes-leg i { width: 16px; height: 2px; background: #B93245; display: inline-block; }

.pcg-lista { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; }
.pcg-lista th, .pcg-lista td { text-align: left; padding: 8px 10px; border-top: 1px solid #D9DDE3; }
.pcg-lista thead th { border-top: 0; background: #EEF1F5; font-size: 12px; font-weight: 500; color: #4A5A70; }
.pcg-lista td.pcg-dir, .pcg-lista th.pcg-dir { text-align: right; }
.pcg-lista .pcg-peca__n { width: 24px; height: 24px; font-size: 12px; }
.pcg-rolagem { overflow-x: auto; }

.pcg-cta { background: #16233F; color: #FFFFFF; border-radius: 8px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.pcg-cta > div { flex: 999 1 320px; min-width: 0; }
.pcg-cta b { display: block; font-size: 16px; font-weight: 600; line-height: 24px; }
.pcg-cta span { display: block; font-size: 13px; line-height: 20px; color: #B9C7D4; margin-top: 4px; }

/* ---------- Rodapé ---------- */
.pcg-rodape { background: #16233F; color: #FFFFFF; }
.pcg-rodape__in { padding-top: 72px; padding-bottom: 32px; }
.pcg-rodape__topo { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.pcg-rodape__topo > div:first-child { flex: 999 1 420px; min-width: 0; }
.pcg-rodape h2 { font-size: 30px; line-height: 38px; font-weight: 700; max-width: 620px; color: #FFFFFF; }
.pcg-rodape p { margin-top: 12px; font-size: 15px; line-height: 24px; color: #B9C7D4; max-width: 560px; }
.pcg-rodape__acoes { flex: none; display: flex; flex-wrap: wrap; gap: 12px; }
.pcg-rodape__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2A3D63; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 12px; color: #B9C7D4; }
.pcg-rodape__base img { height: 22px; width: auto; display: block; }
.pcg-rodape__base .pcg-navlink { font-size: 12px; padding: 11px 0; color: #B9C7D4; }

.pcg-so-impressao { display: none; }

@media (max-width: 760px) {
    .pcg-hide-sm { display: none !important; }
    .pcg-h1 { font-size: 30px; line-height: 38px; }
    .pcg-res-topo .pcg-h1 { font-size: 28px; line-height: 36px; }
    .pcg-h2 { font-size: 26px; line-height: 34px; }
    .pcg-wrap { padding-left: 16px; padding-right: 16px; }
    .pcg-card { padding: 16px; }
    .pcg-hero__txt { padding: 40px 0 112px; }
    .pcg-sec { padding-top: 56px; padding-bottom: 56px; }
    .pcg-peca { padding-bottom: 12px; border-bottom: 1px solid #EEF1F5; }
    .pcg-c-med { max-width: none; }
    .pcg-c-veio { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pcg *, html { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}

/* ---------- Impressão / salvar em PDF ---------- */
@media print {
    @page { size: A4 landscape; margin: 10mm; }
    body.pcg-body, .pcg { background: #FFFFFF; }
    .pcg-nao-imprime, .pcg-top, .pcg-rodape, .pcg-cta, .pcg-barra, #pcg-entrada { display: none !important; }
    .pcg-so-impressao { display: block; }
    .pcg-res-topo { background: #FFFFFF; color: #16233F; }
    .pcg-res-topo__in { padding: 0 0 8px; }
    .pcg-res-topo .pcg-h1 { color: #16233F; font-size: 22px; line-height: 28px; margin-top: 0 !important; }
    .pcg-res-topo p { color: #4A5A70; font-size: 12px; line-height: 18px; margin-top: 2px; }
    .pcg-res { margin-top: 0; padding-bottom: 0; gap: 12px; }
    .pcg-wrap { max-width: none; padding-left: 0; padding-right: 0; }
    .pcg-card { box-shadow: none; border: 1px solid #D9DDE3; padding: 12px; gap: 10px; }
    .pcg-card--plano, .pcg-card--lista { break-inside: avoid; page-break-inside: avoid; }
    .pcg-card--plano { break-before: page; page-break-before: always; }
    .pcg-kpi { padding: 8px 10px; border: 1px solid #D9DDE3; background: #FFFFFF; color: #16233F; }
    .pcg-kpi small, .pcg-kpi span, .pcg-kpi--navy small, .pcg-kpi--navy span { color: #4A5A70; }
    .pcg-kpi b { font-size: 20px; line-height: 26px; }
    .pcg-desenho svg { max-height: 150mm; width: auto; max-width: 100%; margin: 0 auto; }
    .pcg-marca-impressao { font-size: 11px; color: #4A5A70; text-align: right; }
    .pcg * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
