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

body.entry-page {
  height: 100vh;
  overflow: hidden;
  background: #6ec8e8;
  font-family: 'Caveat', cursive;
}

/* ── Page shell ── */

#page-wrapper {
  position: relative;
  height: 100vh;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
}

#bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
}

#entry-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 64px 20px 0;
  z-index: 1;
  text-align: center;
}

/* ── Logo ── */

#brand-logo {
  display: block;
  width: 78%;
  max-width: 290px;
  margin: 0 auto 4px;
}

/* ── Tagline ── */

.tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* ── Divider ── */

.rule {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  margin: 12px 0;
}

/* ── Invite form section ── */

#entry-form-section {
  margin-bottom: 12px;
}

#entry-form-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}

.invite-input-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 4px 4px 4px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  gap: 6px;
}

#invite-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  color: #333;
}

#invite-input::placeholder {
  color: #bbb;
  font-weight: 400;
}

.invite-submit {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #d946a8;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.invite-submit:hover {
  background: #c0389a;
}

#request-invite-link {
  display: inline-block;
  margin-top: 8px;
  color: #4a0080;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* ── Password reveal page ── */

.password-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  margin-top: 16px;
}

.password-label {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
}

.password-value {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #4a0080;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.password-hint {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 20px;
}

.tap-in-btn {
  display: inline-block;
  background: #d946a8;
  color: #fff;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.15s;
}

.tap-in-btn:hover {
  background: #c0389a;
}

/* ── Email capture modal ── */

#invite-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#invite-modal.open {
  display: flex;
}

.modal-sheet {
  background: #fff;
  border-radius: 24px;
  padding: 0 0 28px;
  width: 100%;
  max-width: 380px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  text-align: center;
  font-family: 'Nunito', system-ui, sans-serif;
}

/* ── Kit embed — force single-column mobile layout ── */

#kit-form-embed {
  width: 100%;
  overflow: hidden;
  padding: 0 24px;
}

#kit-form-embed > div,
#kit-form-embed form,
#kit-form-embed .formkit-form {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Hide the decorative image column Kit injects */
#kit-form-embed .formkit-column:first-child,
#kit-form-embed [data-element="column"]:first-child,
#kit-form-embed .seva-fields ~ div[style*="background-image"],
#kit-form-embed .formkit-background {
  display: none !important;
}

/* Make the form column take full width */
#kit-form-embed .formkit-column:last-child,
#kit-form-embed [data-element="column"]:last-child {
  width: 100% !important;
  max-width: 100% !important;
}

/* Force any flex/grid row to stack */
#kit-form-embed .formkit-row,
#kit-form-embed [data-element="row"] {
  flex-direction: column !important;
  display: block !important;
}

/* Inputs fill width */
#kit-form-embed input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Submit button fills width */
#kit-form-embed .formkit-submit,
#kit-form-embed button[type="submit"] {
  width: 100% !important;
  max-width: 100% !important;
}


.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  color: #555;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 24px 24px 0 0;
  margin-bottom: 20px;
}

#email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#email-form input[type="email"] {
  border: 2px solid #e5e5e5;
  border-radius: 50px;
  padding: 12px 18px;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  outline: none;
  color: #333;
  transition: border-color 0.15s;
}

#email-form input[type="email"]:focus {
  border-color: #d946a8;
}

#email-form button[type="submit"] {
  background: #d946a8;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

#email-form button[type="submit"]:hover {
  background: #c0389a;
}
