/* ============================================================
   Coming Soon + Waitlist — additions layered on top of splash.css
   Reuses the rv60 gold palette / button system for exact-match colour.
   ============================================================ */

/* Center the hero vertically on a navbar-less page */
.rv60-body {
  min-height: 100vh;
}

/* <picture> wrapper should not interfere with the img sizing in splash.css */
.rv60-hero-title picture {
  display: block;
}

/* ---- Navbar: KIALS wordmark + section links + Join Waitlist CTA ---- */
/* Header stays visible at all times (splash.css keeps it sticky at the top). */
.rv60-header-inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 60px;
}

/* Use the full KIALS wordmark logo, sized by height and uncropped
   (overrides the square 85x48 / object-fit:cover from splash.css). */
.rv60-logo-link {
  display: flex;
  align-items: center;
  width: auto;
  height: 42px;
}

.rv60-logo-link img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

/* Keep the original mobile behavior: logo + CTA on top, nav wraps below. */
@media (max-width: 900px) {
  .rv60-header-inner {
    grid-template-columns: auto auto;
    gap: 16px;
  }
}

/* Anchored nav links shouldn't land under the sticky header. */
html {
  scroll-behavior: smooth;
}

#people,
#how,
#science,
#faq,
#waitlist {
  scroll-margin-top: 90px;
}

/* "Coming Soon This Summer" pill — gold treatment so it leads the eye,
   instead of the muted grey of the default hero pill. */
.rv60-soon-pill {
  gap: 9px;
  min-height: 30px;
  padding: 8px 16px;
  border-color: rgba(184, 135, 0, 0.32);
  background: linear-gradient(135deg, rgba(255, 244, 216, 0.95), rgba(255, 250, 235, 0.95));
  color: var(--rv60-gold-dark);
  letter-spacing: 1.4px;
}

.rv60-soon-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rv60-gold) 0%, var(--rv60-gold-bright) 100%);
  box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.55);
  animation: rv60-soon-blink 2.4s ease-in-out infinite;
}

@keyframes rv60-soon-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.55); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px rgba(212, 160, 23, 0); opacity: 0.65; }
}

/* ---- Waitlist form (lives where the trial CTA used to be) ---- */
.rv60-waitlist {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rv60-line);
}

.rv60-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.rv60-waitlist-label {
  display: block;
  margin: 0 0 12px;
  color: var(--rv60-title);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  text-align: left;
}

.rv60-waitlist-input {
  display: block;
  width: 100%;
  min-height: 51px;
  padding: 0 18px;
  border: 1px solid #d8dde6;
  border-radius: 9999px;
  background: #fff;
  color: var(--rv60-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: normal;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rv60-waitlist-input::placeholder {
  color: #9aa3b2;
}

.rv60-waitlist-input:focus {
  outline: none;
  border-color: var(--rv60-gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}

.rv60-waitlist-button {
  flex: 0 0 auto;
  min-height: 51px;
  padding: 0 26px;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.rv60-waitlist-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 8px 18px rgba(184, 135, 0, 0.28);
}

.rv60-waitlist-button:active {
  transform: translateY(0);
}

/* Full-width submit, stacked under the consent row */
.rv60-waitlist-button-block {
  display: flex;
  width: 100%;
  margin-top: 18px;
}

/* Agreement + age-confirmation checkbox between the email and the button */
.rv60-waitlist-consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 18px 0 0;
  text-align: left;
  color: var(--rv60-text);
  font-size: 16px;
  line-height: 24px;
}

.rv60-waitlist-consent-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--rv60-gold);
  cursor: pointer;
}

.rv60-waitlist-consent a {
  color: var(--rv60-gold);
  font-weight: 700;
  text-decoration: underline;
}

.rv60-waitlist-consent a:hover {
  color: var(--rv60-gold-dark);
}

/* COPPA / minors disclosure note below the form */
.rv60-waitlist-disclosure {
  max-width: 760px;
  margin: 20px auto 0;
  color: #9aa3b2;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.rv60-waitlist-disclosure a {
  color: var(--rv60-text);
  text-decoration: underline;
}

.rv60-waitlist.is-submitting .rv60-waitlist-button {
  cursor: wait;
  filter: saturate(0.82);
  opacity: 0.78;
  transform: none;
}

.rv60-waitlist.is-submitting .rv60-waitlist-input {
  background: #fbfbfc;
}

.rv60-waitlist-input:disabled,
.rv60-waitlist-button:disabled {
  cursor: not-allowed;
}

/* Submit stays dimmed until the consent box is checked */
.rv60-waitlist-button:disabled {
  filter: saturate(0.65);
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}

.rv60-waitlist-error {
  display: none;
  margin: 10px 0 0;
  color: #9f2f24;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.rv60-waitlist.has-error .rv60-waitlist-error {
  display: block;
}

/* Success state — swapped in after submit */
.rv60-waitlist-success {
  display: none;
  margin: 6px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(184, 135, 0, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 244, 216, 0.9), rgba(255, 250, 235, 0.9));
  color: var(--rv60-gold-dark);
  font-size: 15px;
  line-height: 21px;
  font-weight: 700;
}

.rv60-waitlist.is-done .rv60-waitlist-label,
.rv60-waitlist.is-done .rv60-waitlist-input,
.rv60-waitlist.is-done .rv60-waitlist-consent,
.rv60-waitlist.is-done .rv60-waitlist-button,
.rv60-waitlist.is-done .rv60-trial-line,
.rv60-waitlist.is-done .rv60-waitlist-disclosure {
  display: none;
}

.rv60-waitlist.is-done .rv60-waitlist-success {
  display: block;
}

/* ---- Standalone waitlist CTA band (after "Trusted by") ---- */
.rv60-cta {
  padding: 96px max(24px, calc((100vw - var(--rv60-max)) / 2));
  /* Base matches the section above and the footer below for a seamless join.
     A warm-gold halo pools behind the copy and fades out before every edge,
     so there's no separating band — just a gentle glow around the CTA. */
  background:
    radial-gradient(58% 52% at 50% 48%,
      rgba(212, 160, 23, 0.10) 0%,
      rgba(255, 244, 216, 0.34) 32%,
      rgba(245, 245, 247, 0) 70%),
    #f5f5f7;
}

.rv60-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.rv60-cta h2 {
  margin: 22px 0 0;
  color: var(--rv60-ink);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.31px;
}

.rv60-cta h2 span {
  color: var(--rv60-gold-bright);
}

.rv60-cta-sub {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--rv60-text);
  font-size: 18px;
  line-height: 26px;
}

/* Standalone form: drop the in-card divider, center it under the copy */
.rv60-waitlist-standalone {
  max-width: 1040px;
  margin: 28px auto 0;
  padding-top: 0;
  border-top: 0;
}

/* ---- One orchestrated page-load reveal ---- */
@media (prefers-reduced-motion: no-preference) {
  .rv60-reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: rv60-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--rv60-delay, 0s);
  }

  @keyframes rv60-rise {
    to { opacity: 1; transform: translateY(0); }
  }
}
