/* Calculadora pública (/calculadora-impressao-3d) — usa as variáveis e componentes de landing.css */
.cc-grid [hidden] { display: none !important; }
/* Na calculadora a chamada já está no resultado; o cartão flutuante só atrapalha */
.lp-float { display: none !important; }
.cc-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 3vw, 28px); }
.cc-trilha { display: flex; gap: 8px; margin-bottom: 18px; font-size: 0.82rem; color: var(--text-3); }
.cc-trilha a { color: var(--text-2); text-decoration: none; }
.cc-trilha a:hover { color: var(--text); }
.cc-h1 { margin: 10px 0 0; font-size: clamp(2.1rem, 5.4vw, 3.8rem); line-height: 1.02; font-weight: 500; letter-spacing: -0.045em; max-width: 18ch; text-wrap: balance; }
.cc-lead { margin: 16px 0 0; max-width: 62ch; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.55; color: var(--text-2); }
.cc-lead strong { color: var(--text); font-weight: 500; }

.cc-app { padding-bottom: clamp(40px, 6vw, 72px); }
.cc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.cc-form { padding: clamp(18px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 22px; }
.cc-group { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cc-group + .cc-group { padding-top: 22px; border-top: 1px solid var(--border); }
.cc-group legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0; font-size: 1rem; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.cc-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(139, 92, 246, 0.18); color: var(--violet-2); font-family: var(--mono); font-size: 0.75rem; }
.cc-row { display: grid; gap: 10px; }
.cc-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-field > span { font-size: 0.8rem; color: var(--text-2); line-height: 1.25; }
.cc-field small { color: var(--text-3); font-size: inherit; }
.cc-field--wide { grid-column: 1 / -1; }
.cc-field input, .cc-field select {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font: inherit; font-size: 1rem; font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.cc-field select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
.cc-field select option { background: #14111f; color: var(--text); }
.cc-field input:hover, .cc-field select:hover { border-color: rgba(255, 255, 255, 0.26); }
.cc-field input:focus, .cc-field select:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.22); background-color: rgba(255, 255, 255, 0.06); }
.cc-hint { margin: 0; font-size: 0.8rem; line-height: 1.45; color: var(--text-3); }

.cc-result { position: sticky; top: 96px; padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 18px; }
.cc-price { display: flex; flex-direction: column; gap: 4px; }
.cc-price__v { font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; font-weight: 500; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-price__unit { color: var(--text-2); font-size: 0.92rem; }
.cc-bar { display: flex; gap: 2px; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.cc-bar i { display: block; height: 100%; background: var(--c); transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.cc-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.cc-legend li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text-2); }
.cc-legend li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.cc-legend b { margin-left: auto; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.025); }
.cc-stats span { font-size: 0.78rem; color: var(--text-3); }
.cc-stats b { font-size: 1.2rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cc-stats .is-ok b { color: var(--ok); }
.cc-alerta { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 0.85rem; color: #fde2b8; background: rgba(245, 178, 92, 0.1); border: 1px solid rgba(245, 178, 92, 0.3); }
.cc-alerta.is-ruim { color: #fecaca; background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); }
.cc-conta { border-top: 1px solid var(--border); padding-top: 14px; }
.cc-conta summary { cursor: pointer; font-size: 0.9rem; color: var(--text-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.cc-conta summary::-webkit-details-marker { display: none; }
.cc-conta summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--text-3); }
.cc-conta[open] summary::after { content: "−"; }
.cc-conta ol { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--text-3); }
.cc-conta ol span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.cc-cta { display: flex; flex-direction: column; gap: 10px; }
.cc-cta .lp-btn { justify-content: space-between; }
.cc-cta__fine { margin: 0; font-size: 0.8rem; color: var(--text-3); line-height: 1.45; }

/* texto explicativo */
.cc-texto { max-width: 860px; }
.cc-texto p, .cc-lista { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }
.cc-texto p strong, .cc-lista strong { color: var(--text); font-weight: 500; }
.cc-texto a { color: var(--violet-2); }
.cc-h2b { margin-top: 48px; }
.cc-tabela { overflow-x: auto; margin: 22px 0; border-radius: 18px; border: 1px solid var(--border); }
.cc-tabela table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.cc-tabela th { text-align: left; padding: 12px 16px; font-family: var(--mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); background: rgba(255, 255, 255, 0.03); }
.cc-tabela td { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text-2); font-variant-numeric: tabular-nums; }
.cc-tabela td:last-child { text-align: right; color: var(--text); white-space: nowrap; }
.cc-tabela tr.is-total td { color: var(--text); font-weight: 500; background: rgba(139, 92, 246, 0.07); }
.cc-lista { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.cc-guias { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.cc-guias__t { margin: 0 0 6px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.cc-guias a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--text-2); text-decoration: none; font-size: 0.92rem; }
.cc-guias a:hover { color: var(--text); }

.cc-movel { display: none; }
@media (max-width: 991.98px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-result { position: static; scroll-margin-top: 80px; }
  .cc-movel {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30;
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
    background: rgba(18, 16, 28, 0.92); border: 1px solid var(--border-2); color: var(--text); text-decoration: none;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  }
  .cc-movel span { font-size: 0.8rem; color: var(--text-3); }
  .cc-movel b { font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; }
  .cc-movel__ver { margin-left: auto; color: var(--violet-2) !important; }
}
@media (max-width: 575.98px) {
  .cc-row--3, .cc-row--4 { grid-template-columns: 1fr 1fr; }
  .cc-legend { grid-template-columns: 1fr; }
  .cc-field input, .cc-field select { min-height: 48px; }
}

/* campos alinhados pela base quando o rótulo quebra em duas linhas */
.cc-field { justify-content: flex-end; }
.cc-cta .lp-btn { max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; }
@media (max-width: 575.98px) {
  .cc-h1 { font-size: 2.1rem; text-wrap: pretty; }
  .cc-cta .lp-btn { font-size: 0.95rem; }
}

/* Ler do fatiador */
.cc-fat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; border-radius: 14px; transition: background-color 0.2s; }
.cc-fat.is-over { background: rgba(139, 92, 246, 0.1); }
.cc-fat__btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed rgba(167, 139, 250, 0.4); background: rgba(139, 92, 246, 0.06); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.cc-fat__btn:hover, .cc-fat__btn:focus-visible { border-color: var(--violet-2); background: rgba(139, 92, 246, 0.12); outline: none; }
.cc-fat__btn svg { width: 26px; height: 26px; flex: none; color: var(--violet-2); }
.cc-fat__btn span { display: flex; flex-direction: column; gap: 2px; }
.cc-fat__btn strong { font-weight: 500; font-size: 0.95rem; }
.cc-fat__btn small { color: var(--text-3); font-size: 0.78rem; line-height: 1.4; }
.fat-status { margin: 0; font-size: 0.82rem; color: var(--text-2); }
.fat-status.is-ok { color: var(--ok); }
.fat-status.is-erro { color: #fca5a5; }
/* Fatiador automático (STL → Bambu Studio no servidor) */
.fat-painel { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid rgba(167, 139, 250, 0.28); background: rgba(139, 92, 246, 0.07); }
.fat-painel.is-ocupado { opacity: 0.75; }
.fat-painel__tit { margin: 0; font-size: 0.86rem; line-height: 1.45; color: inherit; }
.fat-painel__tit b { font-weight: 600; word-break: break-all; }
.fat-painel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.fat-painel__campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; font-size: 0.75rem; opacity: 0.95; }
.fat-painel__campo > span { opacity: 0.75; }
.fat-painel__campo--largo { grid-column: 1 / -1; }
.fat-painel select { width: 100%; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(10, 8, 20, 0.55); color: inherit; font: inherit; font-size: 0.85rem; }
.fat-painel select:focus-visible { outline: 2px solid rgba(167, 139, 250, 0.7); outline-offset: 1px; }
.fat-painel select option, .fat-painel select optgroup { color: #111; background: #fff; }
.fat-painel__check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.85rem; cursor: pointer; grid-column: 1 / -1; }
.fat-painel__check input { width: 16px; height: 16px; accent-color: #8b5cf6; }
.fat-painel__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fat-painel__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(139, 92, 246, 0.9); }
.fat-painel__btn:hover { filter: brightness(1.08); }
.fat-painel__btn:disabled { cursor: progress; filter: saturate(0.6); }
.fat-painel__link { border: 0; background: none; padding: 0; color: inherit; opacity: 0.7; font: inherit; font-size: 0.85rem; text-decoration: underline; cursor: pointer; }
.fat-painel__nota { margin: 0; font-size: 0.75rem; opacity: 0.65; }
/* Espera do fatiamento: a peça "sendo impressa" (3D) ou camadas em CSS */
.fat-palco { display: none; flex-direction: column; gap: 10px; }
.fat-painel.is-trabalhando { opacity: 1; }
.fat-painel.is-trabalhando .fat-palco { display: flex; }
.fat-painel.is-trabalhando .fat-painel__grid,
.fat-painel.is-trabalhando .fat-painel__acoes,
.fat-painel.is-trabalhando .fat-painel__nota { display: none; }
.fat-palco__3d, .fat-palco__css { height: 250px; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, rgba(139, 92, 246, 0.28), rgba(10, 8, 20, 0.6) 62%); border: 1px solid rgba(167, 139, 250, 0.2); }
.fat-palco__3d { display: none; position: relative; }
.fat-palco.is-3d .fat-palco__3d { display: block; }
.fat-palco.is-3d .fat-palco__css { display: none; }
.fat-palco__css { position: relative; }
.fat-palco__css::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.fat-palco__pilha { position: absolute; left: 34%; right: 34%; bottom: 18px; height: 0; border-radius: 10px 10px 3px 3px; background: repeating-linear-gradient(0deg, #a78bfa 0 3px, #7c3aed 3px 6px); box-shadow: 0 0 28px rgba(167, 139, 250, 0.45); animation: fat-pilha 7s linear infinite; }
.fat-palco__bico { position: absolute; width: 22px; height: 26px; left: 34%; bottom: 20px; background: linear-gradient(#4b4270, #2a2540); clip-path: polygon(0 0, 100% 0, 100% 62%, 64% 62%, 50% 100%, 36% 62%, 0 62%); filter: drop-shadow(0 6px 10px rgba(167, 139, 250, 0.7)); animation: fat-bico-x 0.8s ease-in-out infinite alternate, fat-bico-y 7s linear infinite; }
@keyframes fat-pilha { 0% { height: 0; } 88%, 100% { height: 170px; } }
@keyframes fat-bico-x { from { left: 33%; } to { left: calc(67% - 22px); } }
@keyframes fat-bico-y { 0% { bottom: 18px; } 88%, 100% { bottom: 188px; } }
.fat-palco__txt { margin: 0; text-align: center; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.fat-palco.is-pronto .fat-palco__txt { color: #34d399; font-weight: 600; }
.fat-palco.is-pronto .fat-palco__pilha, .fat-palco.is-pronto .fat-palco__bico { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .fat-palco__pilha, .fat-palco__bico { animation-duration: 14s, 14s; }
}



/* Calculadoras de corte a laser e acrílico */
.cc-outras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cc-outras a { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); color: var(--text-2) !important; text-decoration: none; font-size: 0.86rem; }
.cc-outras a:hover { color: #fff !important; border-color: rgba(167, 139, 250, 0.5); }
.cc-outras a[aria-current="page"] { background: rgba(139, 92, 246, 0.2); border-color: rgba(167, 139, 250, 0.55); color: #fff !important; }
.cc-seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 3px; padding: 3px; margin-bottom: 4px; border-radius: 12px; background: rgba(10, 8, 20, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); }
.cc-seg button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 0.84rem; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.cc-seg button[aria-pressed="true"] { background: rgba(139, 92, 246, 0.25); color: #fff; box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.45); }
.cc-notas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--text-3); }
.cc-grid [hidden] { display: none !important; }
