/* Additions to the original Tailwind build (styles.css is unchanged). */

/* Hand cursor on everything clickable (Tailwind v4 sets the default arrow on buttons) */
button, [role="button"], a[href], summary, select, label[for],
input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="button"] { cursor: pointer; }
button:disabled, button[aria-busy="true"] { cursor: not-allowed; }

/* Scroll reveal: same timing as the original component (1000ms, cubic-bezier(.22,1,.36,1)). */
.js .reveal {
  opacity: 0;
  transform: translateY(6rem) scale(.96);
  transition: opacity 1000ms cubic-bezier(.22, 1, .36, 1), transform 1000ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform;
}
@media (min-width: 48rem) {
  .js .reveal { transform: translateY(4rem) scale(.96); }
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Selects: chevron so they read as dropdowns (appearance-none hid the native arrow). */
#lead-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
  text-overflow: ellipsis;
}
#lead-form select option { color: #000; }

/* 16px minimum on fields prevents iOS zoom on focus. */
#lead-form input:not([type="checkbox"]), #lead-form select, #lead-form textarea { font-size: max(1rem, 16px); }

/* Fields with errors */
#lead-form [aria-invalid="true"] { border-color: var(--primary); }

/* Honeypot */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Loading spinner in the submit button */
.btn-spinner {
  width: 1em; height: 1em; border-radius: 9999px;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Sticky mobile CTA: iPhone safe area + slides away when the form is on screen */
#mobile-cta {
  padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
  transition: transform .3s ease, opacity .3s ease;
}
#mobile-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* Stop long words and labels overflowing on narrow screens */
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 360px) {
  h1 { font-size: 2rem; }
  .eyebrow { letter-spacing: .14em; }
}

/* Mobile: the hero robot sits beside the "Webinar gratuito" label instead of covering the title */
@media (max-width: 639px) {
  #hero-robot { top: 6.1rem; left: 3%; width: 3rem; }
}
@media (max-width: 374px) {
  #hero-robot { left: 2px; width: 2.1rem; top: 6.4rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition-duration: .3s; }
  .marquee-mask > div, [style*="marquee"] { animation-play-state: paused !important; }
  .fade-up, .animate-float, .animate-glow { animation: none !important; }
}
