/* The instant commission calculator (Paulo, 17 Nov): the same block on the home page (#problema) and on /calculadora.
   Results show as you type, with no email. Uses the site tokens (styles.css / home.css); fallbacks for the two
   home-only ones so /calculadora reads the same. */
.calcx { --on-dark: #F3F0E8; --on-dark-muted: #D3DDD6; margin: clamp(32px, 5vw, 56px) auto 0; max-width: 1080px; background: var(--green); color: var(--cream); border-radius: var(--radius); padding: clamp(22px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.calcx > *, .calcx__f, .calcx__box input { min-width: 0; }
.calcx__kicker { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.calcx__title { margin: 8px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); color: var(--cream); line-height: 1.02; }
.calcx__title span { display: block; color: var(--lime); }
.calcx__lead { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: var(--on-dark); }

/* Inputs: sales on its own row, then commission and the average order */
.calcx__in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calcx__f--wide { grid-column: 1 / -1; }
.calcx__f { display: flex; flex-direction: column; gap: 6px; }
.calcx__f label { font-size: 16px; font-weight: 600; }
.calcx__box { position: relative; }
.calcx__box input { width: 100%; min-height: 56px; padding: 10px 40px 10px 16px; border: 2px solid var(--lime); border-radius: var(--radius-btn); background: #fff; font: inherit; font-size: 22px; font-weight: 700; color: var(--ink); }
.calcx__box input:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.calcx__box input[aria-invalid="true"] { border-color: #FFB4A8; box-shadow: 0 0 0 2px #FFB4A8; }
.calcx__box b { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; }
.calcx__hint { margin: 8px 0 0; font-size: 16px; color: var(--on-dark-muted); line-height: 1.4; }
/* Field errors (15 Nov rule): under the field, light coral on green (7.1:1). */
.calcx__err { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: #FFB4A8; }
.calcx__err[hidden] { display: none; }

/* Results */
.calcx__out { margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calcx__tile { margin: 0; background: var(--lime); color: var(--green); border-radius: var(--radius-btn); padding: 14px 16px; min-width: 0; }
.calcx__tile--now { grid-column: 1 / -1; background: var(--cream); }
.calcx__tile span { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.calcx__tile strong { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.05; overflow-wrap: anywhere; }
.calcx__tile--be { grid-column: 1 / -1; }
.calcx__be { margin: 6px 0 0; display: grid; gap: 6px; }
.calcx__be div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.calcx__be dt { font-size: 16px; font-weight: 600; line-height: 1.35; }
.calcx__be dd { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; white-space: nowrap; }
.calcx__tile small { display: block; margin-top: 4px; font-size: 16px; line-height: 1.35; }

/* The simulation (the slider): labelled as a simulation, never a forecast */
.calcx__sim { margin: 16px 0 0; padding: 14px 16px 16px; border: 1px solid rgba(215,249,167,.35); border-radius: var(--radius-btn); }
.calcx__sim-tag { margin: 0; font-size: 16px; font-weight: 700; color: var(--lime); }
.calcx__slide label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; font-size: 16px; font-weight: 600; }
.calcx__slide output { flex: 0 0 auto; white-space: nowrap; font-family: var(--font-display); font-size: 26px; color: var(--lime); }
.calcx__slide input { width: 100%; margin: 8px 0 0; accent-color: var(--lime); height: 44px; cursor: pointer; }
.calcx__slide input:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.calcx__sim-res { margin: 6px 0 0; font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--cream); }
.calcx__sim-res strong { color: var(--lime); }
.calcx__sim-note { margin: 6px 0 0; font-size: 16px; line-height: 1.4; color: var(--on-dark-muted); }

.calcx__cta { margin: 16px 0 0; }
.calcx .btn { min-height: 48px; }
.calcx .btn--primary { background: var(--lime); color: var(--green); }
.calcx .btn--primary:hover { background: var(--lime-600); }
.calcx .btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.calcx__gf { margin: 14px 0 0; font-size: 17px; line-height: 1.45; }
.calcx__note { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: var(--on-dark-muted); }

@media (max-width: 900px) { .calcx { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .calcx { padding: 22px 18px; }
  .calcx__title { font-size: 34px; }
  .calcx__lead { font-size: 17px; margin-top: 10px; }
  .calcx__in { grid-template-columns: 1fr; gap: 10px; }
  .calcx__out { grid-template-columns: 1fr; }
  .calcx__tile strong { font-size: clamp(26px, 7.6vw, 32px); }
}
@media (max-width: 359px) { .calcx__box input { padding: 10px 26px 10px 10px; font-size: 20px; } .calcx__box b { right: 8px; } .calcx { padding: 18px 14px; } .calcx__in { grid-template-columns: 1fr; } .calcx__title { font-size: 30px; } .calcx__out { gap: 8px; } .calcx__tile { padding: 12px; } }

/* The plan «Prepare-se para vender direto» under the result (plan.js; hidden while GF_PLAN_FORM_ON is false) */
.calcx__plan { margin: 16px 0 0; padding: 18px 16px; border-radius: var(--radius-btn); background: var(--cream); color: var(--green); }
.calcx__plan[hidden], .calcx__plan-form[hidden], .calcx__plan-done[hidden], .calcx__plan [hidden] { display: none; }
.calcx__plan-h { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
.calcx__plan-sub { margin: 6px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.calcx__plan > .btn { margin-top: 12px; }
.calcx .calcx__plan .btn--primary { background: var(--green); color: var(--cream); }
.calcx .calcx__plan .btn--primary:hover { background: var(--green); filter: brightness(1.15); }
.calcx .calcx__plan .btn:focus-visible { outline-color: var(--green); }
.calcx__plan-form { margin-top: 12px; display: grid; gap: 12px; }
.pf__f { display: grid; gap: 6px; }
.pf__f label { font-size: 16px; font-weight: 600; }
.pf__opt { font-weight: 400; color: var(--muted); }
.pf__f input { font: 400 17px/1.3 var(--font-body); padding: 12px 14px; min-height: 48px; border: 1.5px solid #CFC8B6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.pf__f input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.pf__f input[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 1px #B42318; }
.pf__err { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: #B42318; }
.pf__check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--ink); }
.pf__check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--green); }
.pf__msg { margin: 0; font-size: 16px; font-weight: 600; color: var(--green); }
.pf__msg:empty { display: none; }
.pf__small { margin: 0; font-size: 16px; }
.pf__small a { color: var(--green); }
.calcx__plan-done { margin-top: 10px; font-size: 17px; line-height: 1.45; color: var(--ink); }
.calcx__plan-done p { margin: 0; }
.calcx__plan-done:focus { outline: 3px solid var(--green); outline-offset: 2px; }
/* Lead plan (4 Dec): the one expectation line under a primary «Quero ser Fundador» (prices, calculator). On dark green. */
.lead-note { margin: 12px 0 0; max-width: 34em; font-size: 16px; line-height: 1.45; color: var(--on-dark, #F3F0E8); }
@media (max-width: 640px) { .lead-note { margin-left: auto; margin-right: auto; text-align: center; } }
