:root { --bg:#F5F6F8; --surface:#fff; --border:#E4E7EC; --text:#101828; --muted:#475467; --dark:#101828; --accent:#1D4ED8; --bad:#B42318; --ok:#05603A; --okbg:#ECFDF3; --warnbg:#FFFAEB; --warn:#93370D; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--dark); }
.brand { color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.top__link { color: #fff; font-size: 14px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px 16px 48px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); position: relative; }
.steps li span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #D0D5DD; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: #fff; }
.steps li em { font-style: normal; }
.steps li.is-current span { border-color: var(--dark); background: var(--dark); color: #fff; }
.steps li.is-current { color: var(--text); font-weight: 600; }
.steps li.is-done span { border-color: var(--ok); background: var(--ok); color: #fff; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
legend { font-size: 22px; font-weight: 700; padding: 0; margin-bottom: 2px; }
.hint { margin: -6px 0 4px; color: var(--muted); }
.hint--small { font-size: 13px; margin: 4px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.field input { height: 46px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: #fff; }
.field input:focus { outline: 2px solid #84ADFF; outline-offset: 1px; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.opt { font-weight: 400; color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.field--grow { flex: 1 1 220px; }
.field--short { flex: 0 1 160px; }
.field--uf { flex: 0 0 80px; }
.err { color: var(--bad); font-size: 13px; font-weight: 400; min-height: 0; }
.err:empty { display: none; }
.err--block { margin: 4px 0 0; }
.note { color: var(--muted); font-size: 13px; font-weight: 400; }
.note:empty { display: none; }
.pass { display: flex; gap: 8px; }
.pass input { flex: 1; min-width: 0; }
.pass__toggle { height: 46px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; }
.actions--center { justify-content: center; flex-wrap: wrap; }
.btn { min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--dark); background: var(--dark); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.btn:disabled { opacity: .6; cursor: default; }
.btn--ghost { background: #fff; color: var(--text); border-color: #D0D5DD; margin-left: 0; }
.btn--small { min-height: 40px; padding: 0 14px; margin-left: 0; }
.summary { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 12px; font-size: 14px; color: #344054; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.side { font-size: 14px; color: #344054; padding: 6px 4px; }
.side ol { padding-left: 18px; margin: 6px 0 14px; display: flex; flex-direction: column; gap: 6px; }
.side__help { color: var(--muted); }
.result { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.result__icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.result__icon.ok { background: var(--okbg); color: var(--ok); }
.result__icon.warn { background: var(--warnbg); color: var(--warn); }
.result__title { margin: 0; font-size: 22px; }
.result__text { margin: 0; color: #344054; max-width: 460px; }
.invite { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 14px; color: var(--muted); }
.invite__row { display: flex; gap: 8px; }
.invite__row input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #D0D5DD; border-radius: 8px; background: #F9FAFB; font: inherit; font-size: 13px; }
@media (max-width: 760px) {
  .wrap { grid-template-columns: 1fr; padding: 16px 12px 40px; }
  .card { padding: 18px; }
  .steps li em { font-size: 11px; }
  .side { order: 2; }
}

legend:focus { outline: none; }

/* ---------- Planos (passo 4) ---------- */
body.is-plans .wrap { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
body.is-plans .side { display: none; }
.period { display: inline-flex; align-self: flex-start; padding: 4px; border-radius: 12px; background: #F2F4F7; gap: 4px; }
.period__opt { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.period__opt[aria-checked="true"], .period__opt[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.period__opt:focus-visible { outline: 2px solid #84ADFF; outline-offset: 1px; }
.period__save { font-size: 12px; font-weight: 700; color: var(--ok); background: var(--okbg); padding: 2px 8px; border-radius: 999px; }
.period--small .period__opt { padding: 6px 12px; font-size: 13px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.plan-card:hover { border-color: #98A2B3; }
.plan-card:focus-visible { outline: 3px solid #84ADFF; outline-offset: 2px; }
.plan-card.is-selected { border: 2px solid var(--dark); padding: 21px 19px 17px; box-shadow: 0 8px 24px rgba(16, 24, 40, .08); }
.plan-card--featured { background: linear-gradient(180deg, #F5F8FF 0, #fff 140px); }
.plan-card__flag { position: absolute; top: -12px; left: 20px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-card__name { margin: 0; font-size: 20px; }
.plan-card__tagline { margin: 0; color: var(--muted); font-size: 14px; min-height: 3.1em; }
.plan-card__price { margin: 4px 0 0; color: var(--muted); }
.plan-card__price b { font-size: 32px; color: var(--text); letter-spacing: -.01em; margin-right: 2px; }
.plan-card__note { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.plan-card__limits { margin: 0; padding: 10px 12px; list-style: none; background: #F9FAFB; border-radius: 10px; font-size: 13px; color: #344054; display: flex; flex-direction: column; gap: 2px; }
.plan-card__includes { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--text); }
.plan-card__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-card__list li { position: relative; padding-left: 24px; display: flex; flex-direction: column; font-size: 13px; line-height: 1.45; color: var(--muted); }
.plan-card__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--okbg); color: var(--ok); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.plan-card__list strong { color: var(--text); font-size: 14px; font-weight: 600; }
.plan-card__choose { margin-top: 6px; min-height: 42px; border-radius: 10px; border: 1px solid #D0D5DD; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.plan-card.is-selected .plan-card__choose { background: var(--dark); border-color: var(--dark); color: #fff; }
.compare-link { align-self: center; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 10px; }
.common { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; background: #F9FAFB; }
.common__title { margin: 0 0 6px; font-size: 16px; }
.common__text { margin: 0 0 10px; color: #344054; font-size: 14px; max-width: 75ch; }
.common__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 14px; }
.common__list li { padding-left: 22px; position: relative; }
.common__list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---------- Compare os planos ---------- */
.compare { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 64px rgba(16, 24, 40, .25); overflow: hidden; }
.compare[open] { display: flex; flex-direction: column; }
.compare::backdrop { background: rgba(16, 24, 40, .55); }
.compare__bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.compare__title { margin: 0; font-size: 20px; }
.compare__close { border: 1px solid #D0D5DD; background: #fff; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.compare__body { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 0; flex: 1; }
.compare__nav { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-right: 1px solid var(--border); overflow-y: auto; background: #F9FAFB; }
.compare__navlink { text-align: left; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; font-weight: 600; color: #344054; cursor: pointer; }
.compare__navlink:hover { background: #fff; border-color: var(--border); }
.compare__scroll { overflow: auto; min-height: 0; }
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.compare__table thead th { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--border); padding: 14px 12px; vertical-align: bottom; }
.compare__corner { text-align: left; }
.compare__plan { text-align: center; min-width: 150px; }
.compare__plan strong { display: block; font-size: 16px; }
.compare__price { display: block; color: var(--muted); font-size: 13px; font-weight: 500; margin: 2px 0 8px; }
.compare__plan.is-selected { box-shadow: inset 0 3px 0 var(--dark); }
.compare__choose { border: 1px solid var(--dark); background: #fff; color: var(--text); border-radius: 9px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.compare__plan.is-selected .compare__choose { background: var(--dark); color: #fff; }
.compare__group th { text-align: left; background: #EEF4FF; color: #1D2939; font-size: 14px; font-weight: 700; padding: 12px; }
.compare__table tbody th[scope="row"] { text-align: left; font-weight: 500; padding: 12px; border-bottom: 1px solid #F2F4F7; color: #344054; }
.compare__table tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; max-width: 46ch; }
.compare__table td { text-align: center; padding: 12px; border-bottom: 1px solid #F2F4F7; color: #344054; }
.compare__table td.is-selected { background: #FAFBFF; }
.compare .yes { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--okbg); color: var(--ok); align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.compare .no { color: #98A2B3; }

@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; }
  .plan-card__tagline { min-height: 0; }
  .common__list { grid-template-columns: 1fr; }
  .compare { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .compare__body { grid-template-columns: 1fr; }
  .compare__nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 12px; }
  .compare__navlink { white-space: nowrap; padding: 7px 10px; font-size: 13px; }
  .compare__table { font-size: 13px; }
  .compare__plan { min-width: 104px; }
  .compare__table tbody th[scope="row"] { position: sticky; left: 0; background: #fff; min-width: 132px; max-width: 150px; z-index: 1; }
  .compare__table tbody th small { display: none; }
  .compare__corner { position: sticky; left: 0; z-index: 3 !important; }
}
[hidden] { display: none !important; }

/* Troca de plano (/planos/) */
.plan-card__flag--current { background: var(--ok); }
.plan-card.is-current:not(.is-selected) { border-style: dashed; }
.change { display: flex; flex-direction: column; gap: 14px; }
.change__title { margin: 0; font-size: 22px; }
.change__lead { margin: -6px 0 0; color: var(--muted); }
.change__box { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: #F9FAFB; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #344054; }
.change__box strong { color: var(--text); }
.change__box ul { margin: 0; padding-left: 18px; }
.change__box--warn { background: var(--warnbg); border-color: #FEC84B; color: var(--warn); }
.change__box--ok { background: var(--okbg); border-color: #A6F4C5; color: var(--ok); }
.change__actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
body.is-plans-page .wrap { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }

/* Cadastro pelo link de indicação de um revendedor ("Traga seus fornecedores"). */
.referral { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #ecfdf3; color: #05603a; font-size: 14px; line-height: 1.45; }
.referral b { font-weight: 700; }
