/* waitlist.css — final with sticky footer */

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@600&display=swap");

/* Palette & fonts */
:root {
  --gray-light: #d3d3d3;
  --green: #9ac46c;
  --cyan: #34c9e2;
  --blue: #2374ba;
  --navy: #0e2a47;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Sticky footer layout ===== */
html,
body {
  height: 100%;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column; /* stack header/main/footer vertically */
  font-family: var(--font-body);
  color: var(--navy);
  background-color: white;
  line-height: 1.6;
}

/* Your main content grows to push footer down */
main,
main#content {
  flex: 1 0 auto;
}

/* Footer sticks to bottom on short pages */
#site-footer {
  margin-top: auto; /* magic line */
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-top: 2px solid var(--cyan);
  color: var(--navy);
  font-size: 0.9rem;
}
/* ===== end sticky footer block ===== */

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.hero {
  padding: 6rem 0; /* vertical only */
  background: white;
  color: var(--navy);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 1rem; /* gutters */
}

.brand-mark img {
  width: 300px; /* adjust as needed */
  height: auto;
  display: block;
  margin-bottom: 1.5rem;
}

.hero .hero-text h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero .hero-text h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  color: #333;
}

.hero .hero-image {
  flex: 1;
  text-align: center;
}
.hero .hero-image img {
  max-width: 400px;
  border-radius: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn:hover {
  background: var(--navy);
  color: white;
}

/* Signup Section */
.signup {
  background: var(--blue);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}
.signup h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero .hero-text,
  .hero .hero-image {
    flex: unset;
  }
}

/* Inline waitlist form inside hero */
/* Inline waitlist form inside hero - always stacked */
#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 400px; /* keeps it nicely narrow */
}

#waitlist-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#waitlist-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 6px rgba(35, 116, 186, 0.4);
}

#waitlist-form button {
  width: 100%;
  background: var(--blue);
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#waitlist-form button:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

/* Make inputs full-width on small screens */
@media (max-width: 600px) {
  #waitlist-form {
    flex-direction: column;
  }

  #waitlist-form input,
  #waitlist-form button {
    width: 100%;
  }
}

/* Button loading */
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Slower fade-in image */
.hero-image img.will-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease; /* was 300ms */
}
.hero-image img.fade-in {
  opacity: 1;
  transform: none;
}

/* Typewriter cursor */
.typing::after {
  content: "▍";
  margin-left: 4px;
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.cursor-done::after {
  content: "";
  animation: none;
}

/* Flash messages (your current template) */
.flashes {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 90%;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  color: white;
  background: var(--blue);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fade-slide 0.3s ease, fade-out 0.5s ease 4.5s forwards;
}

/* Animations */
@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}

/* Honeypot — hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
  text-align: center;
}

.contact h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contact p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact p:last-child {
  margin-bottom: 0;
}

.contact a {
  color: var(--blue); /* use site blue */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact a:hover {
  color: var(--navy); /* darker shade on hover */
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact {
    padding: 3rem 0;
  }

  .contact h3 {
    font-size: 1.5rem;
  }

  .contact p {
    font-size: 1rem;
  }
}
