/*!
 * Cadastro self-service — complementa landing.css (tokens, .lp-btn, .lp-field, .lp-contact-modal).
 * Paired with: templates/signup/fragments.html (usado em signup/*.html e no modal #criar-conta
 * da index.html), static/js/lp/signup.js
 */

/* =========================================================
   Páginas /cadastro — mesmo modelo da tela de login (account/sign-in.html)
   ========================================================= */
.su-auth-body {
  margin: 0;
  background: #ffffff;
  color: var(--lp-text);
  font-family: 'Inter', var(--lp-font-body);
}

.su-auth {
  display: flex;
  min-height: 100vh;
}

.su-auth__aside {
  display: none;
  position: sticky;
  top: 0;
  width: 44%;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(160deg, #081f1a 0%, #0E352D 50%, #0a5445 100%);
}
@media (min-width: 992px) {
  .su-auth__aside { display: flex; }
}
.su-auth__logo { width: 180px; margin-bottom: 40px; }
.su-auth__tagline {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
  color: #ffffff;
  max-width: 380px;
  margin: 0 0 16px;
}
.su-auth__desc {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(251, 249, 237, 0.7);
  max-width: 360px;
  margin: 0 0 40px;
}
.su-auth__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.su-auth__pill {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--lp-accent);
  border: 1.5px solid rgba(164, 226, 90, 0.35);
  border-radius: 100px;
  padding: 6px 16px;
  background: rgba(164, 226, 90, 0.06);
}
.su-auth__guarantee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 40px 0 0;
  max-width: 360px;
  font-size: 0.85rem;
  color: rgba(251, 249, 237, 0.8);
}
.su-auth__guarantee .material-symbols-rounded { color: var(--lp-accent); }
.su-auth__watermark {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 340px;
  height: 340px;
  opacity: 0.04;
  pointer-events: none;
}

.su-auth__main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}
.su-auth__container {
  width: 100%;
  max-width: 560px;
}
.su-auth__mobile-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
}
@media (min-width: 992px) {
  .su-auth__mobile-icon { display: none; }
  .su-auth__main { align-items: flex-start; padding-top: 64px; }
}
.su-auth__heading {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--lp-primary);
  text-align: center;
  margin: 0 0 6px;
}
.su-auth__subtitle {
  font-size: 0.95rem;
  color: var(--lp-text-muted);
  text-align: center;
  margin: 0 0 32px;
}
.su-auth__switch {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--lp-border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--lp-text-muted);
}
.su-auth__switch a {
  color: var(--lp-primary);
  font-weight: 600;
  text-decoration: none;
}
.su-auth__switch a:hover { text-decoration: underline; }
.su-auth__copyright {
  margin: 40px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #b3c2bb;
}

/* Campos e botões no padrão do login: borda 1.5px, cantos 12px, botão retangular. */
.su-auth .lp-field__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--lp-primary);
}
.su-auth .lp-field__input {
  padding: 13px 14px;
  border-width: 1.5px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.su-auth .lp-btn {
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
}
.su-auth .su-plan__box { border-radius: 12px; }
.su-auth .su-guarantee { display: none; } /* no desktop está no painel; no celular, ver abaixo */
@media (max-width: 991px) {
  .su-auth .su-guarantee { display: flex; }
}

/* =========================================================
   Formulário (página e modal)
   ========================================================= */
.su-form[hidden],
.su-pay[hidden],
.su-step[hidden],
.su-step-only[hidden],
.su-stepper[hidden] { display: none; }

.su-stepper {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lp-accent-600);
  text-transform: uppercase;
}

.su-section { margin-bottom: 24px; }
.su-section__title {
  font-family: var(--lp-font-heading);
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.su-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.su-plan {
  position: relative;
  display: block;
  cursor: pointer;
}
.su-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.su-plan__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border: 1.5px solid var(--lp-border);
  border-radius: var(--lp-radius-md);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.su-plan__name {
  font-family: var(--lp-font-heading);
  font-weight: 700;
}
.su-plan__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lp-primary);
}
.su-plan__price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--lp-text-muted);
}
.su-plan[hidden] { display: none; }
/* Plano fixo (modal aberto pelo card do plano): um card só, sem cara de opção clicável. */
.su-plans--locked { grid-template-columns: 1fr; }
.su-plans--locked .su-plan { cursor: default; }
.su-plans--locked .su-plan__box {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
}
.su-plan input:checked + .su-plan__box {
  border-color: var(--lp-primary);
  background: var(--lp-cream);
  box-shadow: 0 0 0 4px rgba(14, 53, 45, 0.08);
}
.su-plan input:focus-visible + .su-plan__box {
  box-shadow: 0 0 0 4px rgba(14, 53, 45, 0.18);
}

.su-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 16px;
}
@media (min-width: 640px) {
  .su-grid { grid-template-columns: 1fr 1fr; }
  .su-grid .lp-field--full { grid-column: 1 / -1; }
}

/* "4. Sua loja": preferências com padrão (delivery e cores). */
.su-option {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0;
}
.su-option .lp-field__label { display: block; margin-bottom: 8px; padding: 0; }
.su-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .su-choice { grid-template-columns: 1fr 1fr; }
}
.su-choice__item { position: relative; display: block; cursor: pointer; }
.su-choice__item input { position: absolute; opacity: 0; pointer-events: none; }
.su-choice__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--lp-border);
  border-radius: var(--lp-radius-sm);
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.su-choice__item input:checked + span {
  border-color: var(--lp-primary);
  background: var(--lp-cream);
  font-weight: 600;
}
.su-choice__item input:focus-visible + span,
.su-color input:focus-visible {
  box-shadow: 0 0 0 4px rgba(14, 53, 45, 0.18);
}
/* "5. Forma de pagamento": dois cards grandes (PIX/boleto ou cartão). */
.su-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.su-method { position: relative; display: block; cursor: pointer; }
.su-method input { position: absolute; opacity: 0; pointer-events: none; }
.su-method__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 18px 12px;
  border: 1.5px solid var(--lp-border);
  border-radius: var(--lp-radius-md);
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.su-method__icon { font-size: 28px; margin-bottom: 4px; color: var(--lp-text-muted); }
.su-method__name {
  font-family: var(--lp-font-heading);
  font-weight: 700;
}
.su-method__desc { font-size: 0.8rem; color: var(--lp-text-muted); }
.su-method input:checked + .su-method__box {
  border-color: var(--lp-primary);
  background: var(--lp-cream);
  box-shadow: 0 0 0 4px rgba(14, 53, 45, 0.08);
}
.su-method input:checked + .su-method__box .su-method__icon { color: var(--lp-primary); }
.su-method input:focus-visible + .su-method__box { box-shadow: 0 0 0 4px rgba(14, 53, 45, 0.18); }

/* Checkout da FlashPays embutido (cadastro no cartão). */
.su-checkout[hidden], [data-su="card-waiting"][hidden] { display: none; }
.su-checkout__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--lp-text-muted);
}
.su-checkout__brand .material-symbols-rounded { font-size: 18px; }
.su-checkout { text-align: center; }
.su-checkout__mark { width: 64px; height: auto; margin: 0 auto 12px; display: block; }
.su-checkout .lp-btn { margin-top: 8px; }
.su-checkout__fallback {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--lp-text-muted);
}

.su-colors { display: flex; flex-wrap: wrap; gap: 12px; }
.su-color {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1.5px solid var(--lp-border);
  border-radius: var(--lp-radius-pill);
  font-size: 0.9rem;
  cursor: pointer;
}
.su-color input {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.su-color input::-webkit-color-swatch-wrapper { padding: 0; }
.su-color input::-webkit-color-swatch { border: 1px solid var(--lp-border-strong); border-radius: 50%; }
.su-color input::-moz-color-swatch { border: 1px solid var(--lp-border-strong); border-radius: 50%; }

.su-field-hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--lp-text-muted);
}

.su-terms { margin-bottom: 16px; }
.su-terms__label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--lp-text-muted);
  cursor: pointer;
}
.su-terms__label input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--lp-primary);
}
.su-terms__label a { color: var(--lp-primary); font-weight: 600; }

.su-guarantee {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--lp-radius-md);
  background: var(--lp-cream);
  color: var(--lp-primary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.su-guarantee .material-symbols-rounded { color: var(--lp-accent-600); }

.su-actions {
  display: flex;
  gap: 12px;
}
.su-actions__submit { flex: 1; }

.su-alert {
  padding: 12px 16px;
  border-radius: var(--lp-radius-md);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.su-alert--error {
  background: rgba(217, 58, 58, 0.08);
  border: 1px solid rgba(217, 58, 58, 0.3);
  color: var(--lp-danger);
}
.su-alert--info {
  background: var(--lp-bg-alt);
  border: 1px solid var(--lp-border);
  color: var(--lp-text-muted);
}
.su-alert[hidden] { display: none; }

.su-legal {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--lp-text-muted);
}
.su-login-link {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--lp-border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--lp-text-muted);
}
.su-login-link a { color: var(--lp-primary); font-weight: 600; }

/* =========================================================
   Pagamento PIX e conta pronta
   ========================================================= */
.su-pay { text-align: center; }
.su-title {
  font-family: var(--lp-font-heading);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 8px;
}
.su-subtitle {
  color: var(--lp-text-muted);
  margin: 0 0 16px;
}
.su-pay__amount {
  font-family: var(--lp-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--lp-primary);
  margin: 4px 0 16px;
}
.su-pay__qr {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  display: block;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-md);
  padding: 8px;
  background: #ffffff;
}
.su-pay__qr[hidden] { display: none; }
.su-pay__qr-loading {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--lp-border);
  border-radius: var(--lp-radius-md);
  color: var(--lp-text-muted, inherit);
  font-size: 14px;
}
.su-pay__qr-loading[hidden] { display: none; }
.su-pay__code {
  width: 100%;
  min-height: 84px;
  resize: none;
  padding: 12px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--lp-text);
  background: var(--lp-bg-alt);
  word-break: break-all;
  margin-bottom: 12px;
}
.su-pay__mock { margin-top: 16px; }
.su-pay__mock[hidden] { display: none; }
.su-pay__mock .lp-btn { margin-top: 8px; }
.su-pay__waiting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--lp-text-muted);
}
.su-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--lp-border-strong);
  border-top-color: var(--lp-primary);
  animation: su-spin 0.8s linear infinite;
}
@keyframes su-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .su-spinner { animation: none; }
}
.su-pay__icon {
  font-size: 56px;
  color: var(--lp-success);
}
.su-pay__icon--muted { color: var(--lp-gray-mid); }
.su-pay__steps {
  text-align: left;
  font-size: 0.9rem;
  color: var(--lp-text-muted);
  padding-left: 20px;
  margin: 0 0 16px;
}
.su-pay__steps li { margin-bottom: 4px; }
.su-state[hidden] { display: none; }

/* =========================================================
   Modal da landing (#criar-conta): reaproveita a caixa do modal de contato
   ========================================================= */
.lp-signup-modal [data-su="modal-head"][hidden] { display: none; }
.lp-signup-modal .su-pay { padding-top: 8px; }
@media (min-width: 768px) {
  .lp-signup-modal .su-pay {
    max-width: 440px;
    margin: 0 auto;
  }
}
