.waitlist-cta#waitlist {
  scroll-margin-top: 96px;
}

.homepage-waitlist-form {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: min(100%, 620px);
}

.homepage-waitlist-form[hidden] {
  display: none;
}

.homepage-waitlist-form input[type="email"] {
  flex: 1 1 300px;
  min-width: 0;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid rgba(44, 26, 16, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brown, #2c1a10);
  font: 500 16px/1.2 "DM Sans", system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(44, 26, 16, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.homepage-waitlist-form input[type="email"]::placeholder {
  color: rgba(92, 61, 42, 0.66);
}

.homepage-waitlist-form input[type="email"]:focus-visible,
.homepage-waitlist-form .waitlist-btn:focus-visible {
  outline: 3px solid var(--accent, #c4714a);
  outline-offset: 3px;
}

.homepage-waitlist-form input[type="email"]:focus {
  border-color: var(--accent, #c4714a);
  box-shadow: 0 10px 28px rgba(196, 113, 74, 0.18);
}

.homepage-waitlist-form input[type="email"][aria-invalid="true"] {
  border-color: #a53d1b;
}

.homepage-waitlist-form .waitlist-btn {
  flex: 0 0 auto;
  border: 0;
  white-space: nowrap;
  cursor: pointer;
}

.homepage-waitlist-form .waitlist-btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

/* See .footer-waitlist-hp in content.css — `left:-9999px` breaks RTL layout. */
.homepage-waitlist-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.homepage-waitlist-status {
  min-height: 22px;
  max-width: 620px;
  margin: -4px 0 0;
  color: var(--accent-deep, #8a3e22);
  font: 600 14px/1.5 "DM Sans", system-ui, sans-serif;
}

.homepage-waitlist-status[data-state="success"] {
  color: var(--green, #3d6b4f);
}

.homepage-waitlist-fine {
  max-width: 620px;
  margin: -2px 0 0;
  color: var(--brown-mid, #5c3d2a);
  font: 500 12.5px/1.6 "DM Sans", system-ui, sans-serif;
  opacity: 0.82;
}

.homepage-waitlist-fine a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .homepage-waitlist-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 380px);
  }

  .homepage-waitlist-form input[type="email"],
  .homepage-waitlist-form .waitlist-btn {
    width: 100%;
    min-height: 52px;
  }

  .homepage-waitlist-form input[type="email"] {
    font-size: 16px;
  }

  .homepage-waitlist-status,
  .homepage-waitlist-fine {
    max-width: 380px;
  }
}

/* Hero decorative orbs are absolutely positioned with negative offsets
   (.orb-mind sits at right:-120px), which pushed the document 60px wider than
   the viewport at desktop widths and produced a horizontal scrollbar on the
   homepage and every localized copy of it. Clip them at the hero bounds.
   `clip` rather than `hidden` so this does not become a scroll container and
   break sticky positioning. Verified: scrollWidth 1340 -> 1280 at a 1280
   viewport. Fixed 2026-07-24. */
.hero {
  overflow-x: clip;
}

/* Visually hidden but available to screen readers. Defined here because
   `class="sr-only"` was already in the markup with no rule backing it — the
   hiding was done by an inline `left:-9999px`, which is direction-hostile and
   gave RTL pages ~10,000px of horizontal scroll. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
