/* ============================================================
   NUMO CALCULADORA — estilos (namespace .nc-*)
   Variáveis escopadas ao wrapper + modal para não vazarem ao site.
   ============================================================ */
.numo-calc-wrapper, .nc-modal-bg {
  --imp:        #011746;
  --imp7:       #02205f;
  --imp3:       #5b6f95;
  --dark:       #040E17;
  --ice:        #F7FFFF;
  --green:      #2ECC8A;
  --line:       rgba(255,255,255,.14);
  --muted:      rgba(247,255,255,.55);
  --calc-font:  "Utendo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --calc-ease:  cubic-bezier(.22,.61,.36,1);
}

/* ---------- wrapper externo ---------- */
.numo-calc-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 0;
  font-family: var(--calc-font);
}

/* ---------- card principal ---------- */
.nc-card {
  background: var(--imp);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px 22px;
  color: var(--ice);
  max-width: 440px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.nc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 110%, #06245f 0%, var(--imp) 55%, var(--dark) 100%);
  z-index: 0;
  pointer-events: none;
}
.nc-card > * { position: relative; z-index: 1; }

/* ---------- tipografia ---------- */
.nc-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--imp3); margin-bottom: 6px;
}
.nc-headline {
  font-size: 21px; font-weight: 700; line-height: 1.22;
  margin-bottom: 22px; letter-spacing: -.01em;
}
.nc-sect {
  font-size: 10px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--imp3); margin-bottom: 9px;
}

/* ---------- sliders ---------- */
.nc-sl-row { margin-bottom: 19px; }
.nc-sl-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.nc-sl-name { font-size: 13px; color: var(--muted); }
.nc-sl-val  { font-size: 15px; font-weight: 700; color: var(--ice); }

.nc-card input[type=range], .nc-modal-bg input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 2px; border-radius: 2px;
  outline: none; cursor: pointer; margin: 0;
  background: linear-gradient(
    to right,
    var(--ice) 0%, var(--ice) var(--pct, 10%),
    rgba(247,255,255,.18) var(--pct, 10%), rgba(247,255,255,.18) 100%
  );
}
.nc-card input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ice); border: 2.5px solid var(--imp);
  cursor: pointer; transition: transform 160ms;
}
.nc-card input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ice); border: 2.5px solid var(--imp); cursor: pointer;
}
.nc-card input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.12); }

/* ---------- botões objetivo ---------- */
.nc-obj-row { display: flex; gap: 8px; margin-bottom: 18px; }
.nc-obj-btn {
  flex: 1; padding: 9px 0; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; cursor: pointer; text-align: center;
  transition: all 200ms var(--calc-ease); font-family: var(--calc-font);
}
.nc-obj-btn.active {
  background: var(--ice); border-color: var(--ice);
  color: var(--imp); font-weight: 700;
}

/* ---------- telefone ---------- */
.nc-phone-row { display: flex; gap: 8px; margin-bottom: 18px; align-items: stretch; }
.nc-ddi-outer { position: relative; flex-shrink: 0; }
.nc-ddi-wrap {
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; white-space: nowrap; transition: border-color 200ms;
}
.nc-ddi-wrap:hover { border-color: rgba(247,255,255,.5); }
.nc-ddi-code { font-size: 13px; font-weight: 600; color: var(--ice); }
.nc-ddi-arrow { font-size: 10px; color: var(--muted); }
.nc-ddi-select { position: absolute; opacity: 0; inset: 0; cursor: pointer; font-size: 13px; }
.nc-ph-wrap {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 12px; display: flex; align-items: center;
  transition: border-color 200ms; min-width: 0;
}
.nc-ph-wrap:focus-within { border-color: rgba(247,255,255,.5); }
.nc-ph-wrap.err { border-color: rgba(231,76,60,.7); }
.nc-ph-input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 10px 14px; color: var(--ice); font-size: 14px;
  font-weight: 600; font-family: var(--calc-font); width: 100%; min-width: 0;
}
.nc-ph-input::placeholder { color: rgba(247,255,255,.3); font-weight: 400; font-size: 13px; }

/* ---------- botões CTA ---------- */
.nc-cta {
  width: 100%; padding: 14px; border-radius: 999px;
  background: var(--ice); color: var(--imp); font-size: 14px;
  font-weight: 700; letter-spacing: .03em; border: none; cursor: pointer;
  transition: opacity 180ms, transform 160ms var(--calc-ease); font-family: var(--calc-font);
  display: block; text-align: center;
}
.nc-cta:hover { opacity: .9; transform: translateY(-1px); }
.nc-cta:active { transform: scale(.98); }
.nc-cta.ghost {
  background: transparent; color: var(--ice); border: 1px solid var(--line);
}
.nc-cta.ghost:hover { border-color: rgba(247,255,255,.4); }
.nc-cta + .nc-cta { margin-top: 8px; }

/* ---------- disclaimer ---------- */
.nc-disc {
  font-size: 10px; color: var(--muted); margin-top: 13px;
  line-height: 1.55; text-align: center;
}

/* ---------- resultado ---------- */
.nc-res-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--line); gap: 12px;
}
.nc-res-lbl  { font-size: 12px; color: var(--muted); line-height: 1.4; }
.nc-res-sub  { font-size: 10px; color: rgba(247,255,255,.32); margin-top: 2px; }
.nc-res-right { text-align: right; flex-shrink: 0; }
.nc-res-val  { font-size: 17px; font-weight: 700; display: block; white-space: nowrap; }
.nc-res-roi  { font-size: 11px; font-weight: 600; display: block; margin-top: 2px; opacity: .75; white-space: nowrap; }

.nc-diff-box {
  background: rgba(46,204,138,.1); border: 1px solid rgba(46,204,138,.28);
  border-radius: 14px; padding: 16px; margin: 16px 0; text-align: center;
}
.nc-diff-lbl { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(46,204,138,.7); margin-bottom: 5px; }
.nc-diff-val { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.nc-diff-roi { font-size: 12px; color: rgba(46,204,138,.65); margin-top: 4px; font-weight: 600; }

.nc-loc-box {
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; margin: 8px 0 4px;
}
.nc-loc-r { display: flex; justify-content: space-between; padding: 4px 0; }
.nc-loc-l  { font-size: 12px; color: var(--muted); }
.nc-loc-v  { font-size: 13px; font-weight: 700; color: var(--ice); }

/* ---------- MODAL ---------- */
.nc-modal-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(1,23,70,.78); z-index: 9999;
  overflow-y: auto; padding: 20px 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: var(--calc-font);
}
.nc-modal-bg.open { display: flex; align-items: flex-start; justify-content: center; }
.nc-modal-card {
  background: var(--imp); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 24px 24px; width: 100%; max-width: 500px;
  position: relative; font-family: var(--calc-font); color: var(--ice);
  margin: auto;
}
.nc-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
  border-radius: 50%; width: 30px; height: 30px; cursor: pointer;
  color: var(--muted); font-size: 16px; display: flex;
  align-items: center; justify-content: center;
  transition: background 180ms; font-family: var(--calc-font);
}
.nc-modal-close:hover { background: rgba(255,255,255,.16); }

/* modal interna */
.m-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--imp3); margin-bottom: 4px; }
.m-title   { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.m-block   { margin-bottom: 20px; }
.m-h {
  font-size: 10px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--imp3);
  padding-bottom: 7px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.m-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 0; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.05);
}
.m-row:last-child { border-bottom: none; }
.m-label   { font-size: 12px; color: var(--muted); line-height: 1.4; flex: 1; }
.m-formula { font-size: 10px; color: rgba(247,255,255,.28); display: block; margin-top: 1px; font-style: italic; }
.m-val     { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ice); }
.m-val.red   { color: #e87c6a; }
.m-val.green { color: var(--green); }
.m-val.muted { color: var(--muted); }
.m-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 8px; margin-top: 6px; gap: 10px;
}
.m-total.rf     { background: rgba(247,255,255,.07); }
.m-total.imovel { background: rgba(46,204,138,.1); border: 1px solid rgba(46,204,138,.2); }
.m-total .tl    { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.m-total.imovel .tl { color: rgba(46,204,138,.8); }
.m-total .tv-wrap { text-align: right; }
.m-total .tv    { font-size: 17px; font-weight: 800; color: var(--ice); display: block; }
.m-total.imovel .tv { color: var(--green); }
.m-total .troi  { font-size: 11px; font-weight: 600; display: block; margin-top: 1px; opacity: .7; }
.m-total.imovel .troi { color: var(--green); }
.m-total.rf .troi { color: rgba(247,255,255,.55); }
.m-diff {
  background: rgba(46,204,138,.1); border: 1px solid rgba(46,204,138,.25);
  border-radius: 12px; padding: 14px; text-align: center; margin: 14px 0;
}
.m-diff .dl { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(46,204,138,.7); margin-bottom: 4px; }
.m-diff .dv { font-size: 22px; font-weight: 800; color: var(--green); }
.m-diff .ds { font-size: 11px; color: rgba(46,204,138,.55); margin-top: 3px; }
.m-note {
  font-size: 10px; color: rgba(247,255,255,.28); line-height: 1.55;
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: 14px;
}
.m-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.m-tab {
  flex: 1; padding: 8px 0; border-radius: 999px; font-size: 12px;
  font-weight: 600; letter-spacing: .04em; cursor: pointer; text-align: center;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  transition: all 180ms; font-family: var(--calc-font);
}
.m-tab.active { background: var(--ice); border-color: var(--ice); color: var(--imp); font-weight: 700; }
.m-panel { display: none; }
.m-panel.active { display: block; }
.m-cta {
  width: 100%; padding: 13px; border-radius: 999px;
  background: var(--green); color: var(--dark); font-size: 14px;
  font-weight: 700; letter-spacing: .03em; border: none; cursor: pointer;
  margin-top: 16px; transition: opacity 180ms, transform 160ms var(--calc-ease);
  font-family: var(--calc-font); display: block; text-align: center;
}
.m-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .numo-calc-wrapper { justify-content: center; }
  .nc-card { max-width: 520px; }
}
@media (max-width: 480px) {
  .nc-modal-card { border-radius: 16px; }
}
