/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  background: #0A0A0A;
  color: #FFFFFF;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, button, textarea { font: inherit; }

/* ===== LAYOUT ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 16px;
  max-width: 520px;
  margin: 0 auto;
  isolation: isolate;
}

/* ===== BRAND HEADER ===== */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  z-index: 2;
}
.wordmark {
  height: 36px;
  width: auto;
}
.loja {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== CONTENT ===== */
.content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Splash texture (yellow blob behind headline) */
.splash {
  position: absolute;
  top: -24px;
  left: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(closest-side, #F5A800 0%, rgba(245, 168, 0, 0.4) 40%, transparent 70%);
  filter: blur(40px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

/* ===== HEADLINE ===== */
.headline {
  font-family: "Barriecito", system-ui, sans-serif;
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 400;
  line-height: 0.92;
  color: #F5A800;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.subhead {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.subhead strong {
  color: #F5A800;
  font-weight: 700;
}

/* ===== FORM ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.field {
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.hint {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  color: rgba(245, 168, 0, 0.85);
}
.wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  background: #25D366;
  color: #0A0A0A;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 99px;
  text-transform: uppercase;
}
.wa-badge svg {
  flex-shrink: 0;
}
.field input {
  background: #141414;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 14px 14px;
  font-size: 16px;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.3); }
.field input:focus {
  outline: none;
  border-color: #F5A800;
  background: #1a1a1a;
}
.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(204, 34, 34, 0.6);
}
.error {
  font-size: 12px;
  color: #CC2222;
  margin-top: 6px;
  min-height: 14px;
}

/* ===== CHECKBOX LGPD ===== */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  background: #141414;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.check input[type="checkbox"]:checked {
  background: #F5A800;
  border-color: #F5A800;
}
.check input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A0A0A;
  font-size: 14px;
  font-weight: 700;
}
.check a {
  color: #F5A800;
  text-decoration: underline;
}

/* ===== CTA ===== */
.cta {
  background: #F5A800;
  color: #0A0A0A;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 15px;
  padding: 18px 24px;
  border-radius: 4px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 0 0 rgba(245, 168, 0, 0);
}
.cta:hover, .cta:focus-visible {
  background: #FFB800;
  outline: none;
  box-shadow: 0 8px 24px -8px rgba(245, 168, 0, 0.6);
  transform: translateY(-1px);
}
.cta:active { transform: translateY(0); }
.cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.cta-arrow {
  font-family: "Barriecito", system-ui, sans-serif;
  font-size: 22px;
  transition: transform 0.2s ease;
}
.cta:hover .cta-arrow { transform: translateX(4px); }

/* ===== SKIP LINK ===== */
.skip {
  display: block;
  text-align: center;
  margin-top: 18px;
  margin-bottom: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 4px;
  position: relative;
  z-index: 1;
}
.skip:hover { color: rgba(255, 255, 255, 0.7); }

/* ===== MASCOT ===== */
.mascot {
  position: absolute;
  bottom: 40px;
  right: -30px;
  width: 110px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  transform: rotate(-12deg);
}
.mascot img { filter: grayscale(0.3) brightness(0.85); }

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

/* ===== LOADING OVERLAY ===== */
.loading {
  position: fixed;
  inset: 0;
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.loading.show {
  opacity: 1;
  pointer-events: auto;
}
.loading-content {
  text-align: center;
}
.loading-logo {
  height: 48px;
  margin: 0 auto 16px;
  animation: pulse 1.4s ease-in-out infinite;
}
.loading p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (min-width: 480px) {
  .hero { padding: 36px 32px 24px; }
  .headline { font-size: 60px; }
  .subhead { font-size: 15px; }
  .mascot { width: 140px; right: -20px; }
}

@media (min-height: 800px) {
  .hero { justify-content: center; }
  .content { flex: none; }
}

/* iOS Safari input zoom prevention */
@supports (-webkit-touch-callout: none) {
  .field input { font-size: 16px; }
}
