/* Feirinha do Brás — LP Cadastro (mock) */

:root {
  --navy: #001f3f;
  --navy-dark: #001833;
  --blue: #4a90e2;
  --blue-light: #e6f0f7;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #1a1a2e;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #16a34a;
  --shadow: 0 4px 24px rgba(0, 31, 63, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 31, 63, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

/* ── Header ── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header__logo {
  height: 40px;
  width: auto;
}

.header__badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, #0a3d6b 45%, var(--blue) 100%);
  color: var(--white);
  padding: 28px 16px 36px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: #7ec8ff;
}

.hero__subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
  max-width: 480px;
  line-height: 1.55;
}

.hero__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.hero__bullets li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(22, 163, 74, 0.25);
  border: 1px solid rgba(22, 163, 74, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #86efac;
}

/* ── Form card ── */
.form-section {
  padding: 0 16px;
  margin-top: -28px;
  position: relative;
  z-index: 10;
}

.form-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 20px;
  border: 1px solid var(--border);
}

.form-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.form-card__desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* evita zoom no iOS */
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.field input.error {
  border-color: #ef4444;
}

.field__error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.field__error.visible {
  display: block;
}

.field--password {
  position: relative;
}

.field__toggle-pw {
  position: absolute;
  right: 12px;
  bottom: 14px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.btn-submit {
  width: 100%;
  padding: 16px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, #0a3d6b 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 31, 63, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 52px;
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-card__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}

/* ── Social proof ── */
.proof {
  padding: 40px 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.proof__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  margin-bottom: 8px;
}

.proof__subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.stat {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat__num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.stat__label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.3;
}

.store-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.store-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.store-card__img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--blue-light), #cce1ef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.store-card__body {
  padding: 10px 12px 12px;
}

.store-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.store-card__tag {
  font-size: 10px;
  color: var(--muted);
}

/* ── CTA final ── */
.cta-final {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 36px 16px 40px;
  text-align: center;
}

.cta-final__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final__text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(74, 144, 226, 0.35);
  min-height: 48px;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 28px 16px;
  text-align: center;
  font-size: 12px;
}

.footer__logo {
  height: 36px;
  margin: 0 auto 12px;
  opacity: 0.95;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: background 0.2s;
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer__link {
  color: rgba(255, 255, 255, 0.6);
}

.footer__link:hover {
  color: white;
}

/* ── Modal sucesso (mock) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.modal-overlay.visible {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal__icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
}

.modal__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal__text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal__note {
  font-size: 11px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal__btn {
  width: 100%;
  padding: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ── Desktop layout ── */
@media (min-width: 768px) {
  .hero {
    padding: 48px 24px 56px;
  }

  .hero__grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
  }

  .form-section {
    margin-top: 0;
    padding: 0;
  }

  .form-card {
    margin: 0;
    max-width: none;
  }

  .hero__banner {
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 24px;
    box-shadow: var(--shadow-lg);
    display: block;
  }

  .store-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
  }
}

@media (min-width: 768px) {
  .hero__banner {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero__banner {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
}
