/* get_emails.css — dark mode using user's existing color variables */

/* --- Responsive Baseline (shared) --- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: var(--black);
  color: var(--white);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* Fluid type: scales between mobile and desktop */
:root {
  --step--1: clamp(0.875rem, 0.80rem + 0.25vw, 0.95rem);
  --step-0:  clamp(1.00rem, 0.90rem + 0.45vw, 1.10rem);
  --step-1:  clamp(1.25rem, 1.05rem + 0.80vw, 1.45rem);
  --step-2:  clamp(1.50rem, 1.20rem + 1.10vw, 1.80rem);
  --step-3:  clamp(1.90rem, 1.45rem + 1.70vw, 2.40rem);
}
body { font-size: var(--step-0); }
h1 { font-size: var(--step-3); margin: 0.6em 0 0.4em; }
h2 { font-size: var(--step-2); margin: 0.6em 0 0.4em; }
p, li { font-size: var(--step-0); }

/* Container that adapts to any device width */
.container {
  width: min(92vw, 1100px);
  margin-inline: auto;
  padding-inline: 2vw;
}

/* Images & media never overflow */
img, svg, video { max-width: 100%; height: auto; display: block; }

/* Forms: avoid iOS zoom (keep >=16px), make inputs fluid */
input, button, select, textarea {
  font: inherit;
  font-size: 16px; /* prevents iOS auto-zoom */
  color: inherit;
}
.form-row, .email-signup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.email-signup input[type="email"],
.email-signup input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
  background: color-mix(in srgb, var(--black) 85%, var(--white));
  border-radius: 10px;
  outline: none;
}
.email-signup button,
button.primary {
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: var(--blue-accent);
  color: var(--white);
  cursor: pointer;
  min-height: 44px; /* touch target */
}

/* Spacing utility for sections */
.section { padding: clamp(16px, 4vw, 48px) 0; }

/* Mobile-first tweaks */
@media (max-width: 768px) {
  .form-row, .email-signup { grid-template-columns: 1fr; }
  .hero { text-align: center; }
}

/* Respect iPhone X bottom safe area for sticky footers/buttons if any */
.sticky-bottom {
  position: sticky;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

/* === Center the email signup form === */
.email-signup {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto;
  width: min(90%, 600px);
}

.email-signup input[type="email"] {
  flex: 1 1 250px;
  text-align: center;
}

.email-signup button {
  flex: 0 0 auto;
}

/* === Animations === */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes smoothPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.75;
  }
}

@keyframes headerFade {
  0%   { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* === Base === */
body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--intro-background-dark);
  color: var(--white);
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 3rem 1rem 1rem;
  animation: headerFade 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

h1 {
  animation: headerFade 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.subtitle {
  animation: headerFade 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

/* === Hero === */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  position: relative;
}

.hero img,
.description,
.signup-text,
.email-signup {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero img { animation-delay: 0.1s; }
.description { animation-delay: 0.3s; }
.signup-text { animation-delay: 0.5s; }
.email-signup { animation-delay: 0.7s; }

.hero img {
  max-width: 480px;
  width: 90%;
  border-radius: 1rem;
  background: transparent;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Image hover glow */
.hero img:hover {
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--blue-accent) 60%, transparent));
  transform: scale(1.02);
}

/* Smooth breathing glow behind hero */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--blue-accent) 45%, transparent) 0%,
    transparent 70%);
  transform: translate(-50%, -50%) scale(1);
  z-index: 0;
  filter: blur(40px);
  opacity: 0.5;
  animation: smoothPulse 8s ease-in-out infinite;
}

/* === Description & Signup === */
.description {
  max-width: 600px;
  text-align: center;
  color: var(--offwhite);
  font-size: 1rem;
  padding: 0 1rem;
}

.signup-text {
  text-align: center;
  color: var(--gray-light);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  max-width: 480px;
  line-height: 1.4;
}

.email-signup {
  margin-top: 0.5rem;
  text-align: center;
}

/* === Input === */
input[type="email"] {
  padding: 0.8rem 1rem;
  width: 280px;
  border: 1px solid var(--gray-mid);
  border-radius: 2rem;
  font-size: 1rem;
  outline: none;
  background-color: var(--gray-dark);
  color: var(--white);
  transition: border 0.2s, background 0.2s;
}

input[type="email"]::placeholder {
  color: var(--gray-light);
}

input[type="email"]:focus {
  border-color: var(--blue-accent);
  background-color: var(--gray-dark);
}

/* === Button === */
button {
  margin-left: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 2rem;
  background-color: var(--blue-accent);
  color: var(--intro-background-dark);
  font-weight: 800;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}

button:hover {
  background-color: color-mix(in srgb, var(--blue-accent) 90%, white);
}

/* Button glow */
button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

button:hover {
  background-color: var(--blue-accent);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--blue-accent) 60%, transparent),
    inset 0 0 20px color-mix(in srgb, var(--blue-accent) 50%, transparent);
  transition: box-shadow 0.4s ease, background-color 0.3s ease;
}

button:active {
  box-shadow:
    0 0 6px color-mix(in srgb, var(--blue-accent) 70%, transparent),
    inset 0 0 10px color-mix(in srgb, var(--blue-accent) 60%, transparent);
  transform: scale(0.98);
}

/* === Launch Badge === */
.launch-badge {
  display: inline-block;
  background-color: var(--blue-accent);
  color: var(--intro-background-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 4rem 1rem 2rem;
  font-size: 0.9rem;
  color: var(--gray-light);
}

.tagline p {
  font-size: 1rem;
  color: var(--gray-light);
  max-width: 500px;
  margin: 0 auto 1rem;
}

/* === Utility === */
.highlight-blue {
  color: var(--blue-accent);
  font-weight: 500;
}

.dot {
  color: var(--blue-accent);
  animation: pulse 2s infinite ease-in-out;
}

.checkmark {
  font-size: 3rem;
  color: var(--blue-accent);
  text-shadow:
    0 0 10px color-mix(in srgb, var(--blue-accent) 60%, transparent),
    0 0 30px color-mix(in srgb, var(--blue-accent) 30%, transparent);
  animation: smoothPulse 4s ease-in-out infinite;
}

/* === White flashing dot (for thank-you message) === */
.dot-white {
  color: var(--white);
  animation: pulseWhite 2s infinite ease-in-out;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.8),
    0 0 16px color-mix(in srgb, var(--blue-accent) 40%, transparent);
}

@keyframes pulseWhite {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* === Thank-you page animation === */
.thankyou-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  animation: fadeUp 1s ease forwards;
}

.thankyou-message {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--offwhite);
  margin-bottom: 1.5rem;
  animation: fadeUp 1.2s ease forwards;
}

.hidden-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  visibility: hidden;
}