/* Cadastro da empresa: layout dividido (marca + prévia à esquerda, formulário à direita).
   Só vale com body.signup; o /planos/ continua só com o cadastro.css. */
body.signup {
  --ink: #0E1525;
  --ink-2: #1B2438;
  --line: #E3E6EB;
  --muted: #5B6475;
  --brand: #D92D20;
  --focus: #2E5BFF;
  --field: #FFFFFF;
  background: #F3F4F6;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}

/* Cabeçalho escuro só nos planos (página larga) e no celular. */
body.signup .top--signup { display: none; }
body.signup.is-plans .top--signup { display: flex; }

/* ---------- Divisão da tela ---------- */
body.signup:not(.is-plans) .wrap {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(360px, 44%) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
body.signup:not(.is-plans) .wrap > .card {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  margin: 48px 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.signup:not(.is-plans) .side {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding: 40px 48px;
  background: var(--ink);
  color: #C9CFDA;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Painel da marca ---------- */
.side__brand {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.side__brand::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand);
}
.side__title {
  margin: 28px 0 0;
  color: #fff;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
  max-width: 17ch;
}
.side__lead { margin: 0; max-width: 42ch; line-height: 1.55; }

.preview {
  margin: 10px 0 0;
  max-width: 420px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #EEF0F3;
}
.preview__bar span { width: 8px; height: 8px; border-radius: 50%; background: #CDD2DA; }
.preview__bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview__body { padding: 16px; }
.preview__head { display: flex; align-items: center; gap: 12px; }
.preview__head strong { display: block; font-size: 16px; line-height: 1.2; }
.preview__head small { color: var(--muted); font-size: 12px; }
.preview__logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.preview__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.preview__item { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.preview__item i { display: block; height: 54px; border-radius: 7px; background: #F1F2F5; }
.preview__item b { display: block; height: 8px; width: 70%; border-radius: 4px; background: #E3E6EB; }
.preview__item span { font-size: 10px; font-weight: 600; color: var(--brand); }
.preview figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.side__facts {
  list-style: none;
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.side__facts b { color: #fff; font-weight: 600; }
.side__facts a { color: #fff; }

/* ---------- Formulário ---------- */
.wizard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wizard__count { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.wizard__login { font-size: 14px; font-weight: 600; color: var(--ink); }

body.signup .steps { grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 30px; }
body.signup .steps li { align-items: stretch; gap: 8px; font-size: 12px; font-weight: 500; color: #8A93A3; }
body.signup .steps li span {
  width: auto;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: #DCDFE5;
  font-size: 0;
  color: transparent;
}
body.signup .steps li.is-done span { background: var(--ink); }
body.signup .steps li.is-current span { background: var(--brand); }
body.signup .steps li.is-current { color: var(--ink); font-weight: 600; }
body.signup .steps li.is-done { color: var(--ink-2); }

body.signup legend {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}
body.signup .hint { margin: -4px 0 10px; color: var(--muted); font-size: 15px; }
body.signup fieldset { gap: 18px; }
body.signup .field { gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
body.signup .field input,
body.signup .pass__toggle {
  height: 48px;
  border: 1px solid #CFD4DC;
  border-radius: 10px;
  background: var(--field);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
body.signup .field input { padding: 0 14px; font-size: 16px; }
body.signup .field input::placeholder { color: #A0A7B4; }
body.signup .field input:hover { border-color: #AEB5C1; }
body.signup .field input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(46, 91, 255, .18);
}
body.signup .field input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
body.signup .opt { font-weight: 400; }
body.signup .pass__toggle { padding: 0 14px; font-weight: 600; color: var(--ink-2); }
body.signup .pass__toggle:hover { border-color: #AEB5C1; }
body.signup .check { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; line-height: 1.45; }
body.signup .check input { accent-color: var(--ink); }

body.signup .actions { margin-top: 30px; }
body.signup .btn {
  min-height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: background .15s, transform .05s;
}
body.signup .btn:not(.btn--ghost):hover { background: var(--ink-2); }
body.signup .btn:active { transform: translateY(1px); }
body.signup .btn:focus-visible,
body.signup .wizard__login:focus-visible,
body.signup .pass__toggle:focus-visible { outline: 3px solid rgba(46, 91, 255, .45); outline-offset: 2px; }
body.signup .btn--ghost:hover { border-color: #AEB5C1; }

/* ---------- Resultado (volta da Stripe) ---------- */
body.signup .result { gap: 14px; text-align: left; align-items: flex-start; }
body.signup .result__icon { width: 52px; height: 52px; border-radius: 14px; font-size: 24px; }
body.signup .result__title { font-size: 30px; letter-spacing: -.02em; }
body.signup .result__text { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
body.signup .invite { max-width: none; margin-top: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
body.signup .invite__row input { height: 44px; }
body.signup .actions--center { justify-content: flex-start; }

/* ---------- Planos: página larga como antes ---------- */
body.signup.is-plans .wrap { display: grid; }
body.signup.is-plans .wizard__top { display: none; }
body.signup.is-plans .steps { max-width: 560px; margin: 0 auto 28px; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  body.signup .top--signup { display: flex; }
  body.signup:not(.is-plans) .wrap { display: block; min-height: 0; }
  body.signup:not(.is-plans) .wrap > .card { margin: 0 auto; padding: 24px 16px 40px; max-width: 560px; }
  body.signup:not(.is-plans) .side { display: none; }
  body.signup .wizard__login { display: none; }
  body.signup legend { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  body.signup * { transition: none !important; }
}

/* Endereço achado pelo CEP: cartão para conferir, campos só se precisar corrigir. */
.addr-found { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #F9FAFB; color: var(--ink-2, #344054); }
.addr-found svg { flex-shrink: 0; margin-top: 1px; }
.addr-found__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--muted); }
.addr-found__text strong { font-size: 15px; color: var(--ink, #101828); }
.addr-found__edit { align-self: flex-start; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink, #101828); text-decoration: underline; cursor: pointer; }
.addr-found__edit:hover { background: #EEF0F3; }
.addr-fields { display: flex; flex-direction: column; gap: inherit; }
.addr-fields[hidden], .addr-found[hidden] { display: none; }
