/* Keep the existing landing-page offer typography outside the shared dialog. */
.waitlist-offer h3 { font-size: 29px; line-height: 1.2; letter-spacing: -.8px; margin: 19px 0 12px; }
.waitlist-offer > small { font-size: 9px; line-height: 1.7; }
.hero-caption { line-height: 1.7; }

/* Shared waitlist: SyntariUI tokens, inputs and primary buttons on every page. */
body #join-dialog.waitlist-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 48px 40px 40px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border, #e4e7ec);
  border-radius: var(--radius-2xl, 24px);
  background: var(--surface, #fff);
  color: var(--text, #182230);
  box-shadow: var(--shadow-command, 0 24px 72px rgb(16 24 40 / 16%));
}
body #join-dialog.waitlist-dialog::backdrop {
  background: var(--overlay-backdrop, rgb(16 24 40 / 28%));
  backdrop-filter: blur(5px);
}
#join-dialog.waitlist-dialog [hidden] { display: none !important; }
#join-dialog.waitlist-dialog .waitlist-dismiss {
  display: grid;
  place-items: center;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #667085);
  cursor: pointer;
}
#join-dialog.waitlist-dialog .waitlist-dismiss:hover { background: var(--subtle, #f5f6f8); }
#join-dialog.waitlist-dialog .waitlist-dismiss .icon { width: 20px; height: 20px; }
#join-dialog.waitlist-dialog .waitlist-eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--accent-text, #2454cc);
}
#join-dialog.waitlist-dialog .waitlist-title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.9px;
  text-wrap: balance;
}
#join-dialog.waitlist-dialog .waitlist-title:focus { outline: none; }
#join-dialog.waitlist-dialog .waitlist-description {
  margin: 12px 0 0;
  max-width: none;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted, #667085);
}
#join-dialog.waitlist-dialog .waitlist-form { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 32px 0 0; }
#join-dialog.waitlist-dialog .waitlist-field { min-width: 0; }
#join-dialog.waitlist-dialog .waitlist-field > label {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
#join-dialog.waitlist-dialog input.waitlist-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border-control, #d0d5dd);
  border-radius: var(--radius-md, 10px);
  background: var(--surface, #fff);
  color: var(--text, #182230);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
#join-dialog.waitlist-dialog input.waitlist-input::placeholder { color: var(--muted, #667085); opacity: .8; }
#join-dialog.waitlist-dialog input.waitlist-input:focus-visible {
  outline: none;
  border-color: var(--accent-text, #2454cc);
  box-shadow: 0 0 0 3px var(--accent-soft, #eaf0ff);
}
#join-dialog.waitlist-dialog .waitlist-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 4px 0;
  cursor: pointer;
  color: var(--muted, #667085);
  font-size: 14px;
  line-height: 1.5;
}
#join-dialog.waitlist-dialog .waitlist-consent input {
  appearance: auto;
  box-sizing: border-box;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent-text, #2454cc);
}
#join-dialog.waitlist-dialog .waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#join-dialog.waitlist-dialog .waitlist-error {
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: var(--radius-md, 10px);
  background: var(--red-a1, #fff0ee);
  color: var(--danger-text, #9c3d30);
  font-size: 14px;
  line-height: 1.5;
}
#join-dialog.waitlist-dialog .waitlist-submit,
#join-dialog.waitlist-dialog .waitlist-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin: 4px 0 0;
  padding: 14px 20px;
  font-size: 16px;
  line-height: 1.5;
}
#join-dialog.waitlist-dialog .waitlist-submit:disabled { opacity: .7; cursor: wait; transform: none; }
#join-dialog.waitlist-dialog .waitlist-submit[aria-busy="true"]::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: waitlist-spin 700ms linear infinite;
}
/* Success: a pointillist confirmation in the editorial pen-and-dots language. */
@font-face { font-family: "Space Grotesk"; src: url("/assets/SpaceGrotesk-Variable.woff2") format("woff2"); font-style: normal; font-weight: 300 700; font-display: swap; }
body #join-dialog.waitlist-dialog[data-stage="success"] { padding: 44px 40px 40px; }
#join-dialog.waitlist-dialog .waitlist-success { position: relative; text-align: center; }
#join-dialog.waitlist-dialog .waitlist-success::before {
  content: "";
  position: absolute;
  inset: -44px -40px auto;
  height: 280px;
  background-image: radial-gradient(circle, rgb(36 87 197 / 15%) .8px, transparent 1.15px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 70% at 50% 18%, #000 0%, transparent 72%);
  pointer-events: none;
  animation: waitlist-fade 900ms ease-out 120ms both;
}
#join-dialog.waitlist-dialog .waitlist-success-art {
  position: relative;
  width: 156px;
  height: 156px;
  margin: 0 auto 18px;
}
#join-dialog.waitlist-dialog .waitlist-stipple {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--accent-text, #2457c5);
}
#join-dialog.waitlist-dialog .waitlist-stipple circle {
  fill: currentColor;
  opacity: var(--o);
  transform-box: fill-box;
  transform-origin: center;
  animation: waitlist-stipple-in 640ms cubic-bezier(.2, .7, .2, 1) var(--d) both;
}
#join-dialog.waitlist-dialog .waitlist-stipple-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: waitlist-breathe 5200ms ease-in-out 1600ms infinite;
}
#join-dialog.waitlist-dialog .waitlist-check-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 94;
  stroke-dashoffset: 94;
  opacity: .92;
  animation: waitlist-draw 560ms cubic-bezier(.3, .6, .2, 1) 660ms forwards;
}
#join-dialog.waitlist-dialog .waitlist-success-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .14em;
}
#join-dialog.waitlist-dialog .waitlist-success-eyebrow i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}
#join-dialog.waitlist-dialog .waitlist-success .waitlist-title {
  font-family: "Space Grotesk", var(--font-sans, inherit);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: var(--text, #182230);
}
#join-dialog.waitlist-dialog .waitlist-success .waitlist-description {
  max-width: 300px;
  margin: 12px auto 0;
  line-height: 1.65;
  text-wrap: pretty;
}
#join-dialog.waitlist-dialog .waitlist-success-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 999px;
  background: var(--subtle, #f5f6f8);
  color: var(--text, #182230);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
#join-dialog.waitlist-dialog .waitlist-success-email svg { flex: 0 0 15px; width: 15px; height: 15px; color: var(--accent-text, #2457c5); }
#join-dialog.waitlist-dialog .waitlist-success-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#join-dialog.waitlist-dialog .waitlist-done { margin-top: 28px; }
#join-dialog.waitlist-dialog .waitlist-success > :not(.waitlist-success-art) {
  animation: waitlist-rise 560ms cubic-bezier(.2, .7, .2, 1) both;
}
#join-dialog.waitlist-dialog .waitlist-success > .waitlist-success-eyebrow { animation-delay: 520ms; }
#join-dialog.waitlist-dialog .waitlist-success > .waitlist-title { animation-delay: 600ms; }
#join-dialog.waitlist-dialog .waitlist-success > .waitlist-description { animation-delay: 680ms; }
#join-dialog.waitlist-dialog .waitlist-success > .waitlist-success-email { animation-delay: 740ms; }
#join-dialog.waitlist-dialog .waitlist-success > .waitlist-done { animation-delay: 820ms; }
@keyframes waitlist-stipple-in {
  from { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
  55% { opacity: var(--o); }
  to { opacity: var(--o); transform: none; }
}
@keyframes waitlist-draw { to { stroke-dashoffset: 0; } }
@keyframes waitlist-breathe { 50% { transform: scale(1.025); } }
@keyframes waitlist-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes waitlist-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes waitlist-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  body #join-dialog.waitlist-dialog { padding: 40px 24px 32px; }
  body #join-dialog.waitlist-dialog[data-stage="success"] { padding: 36px 24px 32px; }
  #join-dialog.waitlist-dialog .waitlist-title { font-size: 26px; }
  #join-dialog.waitlist-dialog .waitlist-success::before { inset: -36px -24px auto; }
  #join-dialog.waitlist-dialog .waitlist-success-art { width: 136px; height: 136px; margin-bottom: 14px; }
  #join-dialog.waitlist-dialog .waitlist-success .waitlist-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  #join-dialog.waitlist-dialog .waitlist-success::before,
  #join-dialog.waitlist-dialog .waitlist-success > *,
  #join-dialog.waitlist-dialog .waitlist-stipple circle,
  #join-dialog.waitlist-dialog .waitlist-stipple-halo,
  #join-dialog.waitlist-dialog .waitlist-check-stroke,
  #join-dialog.waitlist-dialog .waitlist-submit[aria-busy="true"]::after { animation: none; }
  #join-dialog.waitlist-dialog .waitlist-check-stroke { stroke-dashoffset: 0; }
  #join-dialog.waitlist-dialog input.waitlist-input { transition: none; }
}
